Click or drag to resize

CursorDefinition Class

An asset to hold a cursor to use in game.
Inheritance Hierarchy
SystemObject
  Object
    ScriptableObject
      DustProductions.CoreCursorDefinition

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class CursorDefinition : ScriptableObject

The CursorDefinition type exposes the following members.

Constructors
  NameDescription
Public methodCursorDefinition
Initializes a new instance of the CursorDefinition class
Top
Properties
  NameDescription
Public propertyCursorModeType
Whether or not to force rendering of the cursor to software. I usually leave it on auto because it's faster for hardware to do it.
Public propertyCursorTexture
The texture of the cursor you want to use, must be imported as a cursor
Public propertyHotspot
The pixel where the cursor actually clicks. (0,0) is the top left corner. (1,1) is one pixel right, one pixel down. etc.
Top
Fields
  NameDescription
Public fieldStatic memberDefaultNewObjectName
The name of new CursorDefinition files by default.
Public fieldStatic memberDefaultPath
The path where new CursorDefinitions will be made be default.
Top
See Also