Click or drag to resize

CursorManager Class

Singleton used to manage adding and removing cursors at runtime.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DustProductions.CoreSingletonCursorManager
            DustProductions.CoreCursorManager

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class CursorManager : Singleton<CursorManager>

The CursorManager type exposes the following members.

Constructors
  NameDescription
Public methodCursorManager
Initializes a new instance of the CursorManager class
Top
Properties
  NameDescription
Public propertyDefaultCursorDefinition
What the default cursor definition should be, if desired
Top
Methods
  NameDescription
Public methodAddCurrentCursor
Put a CursorDefinition on top of the stack, making it the active cursor.
Public methodRemoveCurrentCursor
Pop the top cursor off the stack, making the next cursor the active cursor if there is one. If there's not, it will be set to the default cursor.
Public methodSetCursorToDefault
Sets the cursor to the default cursor.
Top
Extension Methods
  NameDescription
Public Extension MethodAnnounceComponentAdded
Notifies any IComponentHandlers on the GameObject a Component is added to, that the Component has been added.
(Defined by ExtensionMethods.)
Public Extension MethodStartCoroutineT
Use by calling this.StartCoroutine and assigning it to a Coroutine. Then you can call your assigned coroutine.Cancel(), or .HasFinished, or a variety of other neat things.
(Defined by ExtensionMethods.)
Public Extension MethodTryGetComponentT(T, Boolean)Overloaded.
Attempts to get a component on a gameobject.
(Defined by ExtensionMethods.)
Public Extension MethodTryGetComponentT1, T2(T1, Boolean)Overloaded.
Attempts to get a component on a gameobject.
(Defined by ExtensionMethods.)
Public Extension MethodTryGetComponentsT(T, Boolean)Overloaded.
Attempts to get components on a gameobject.
(Defined by ExtensionMethods.)
Public Extension MethodTryGetComponentsT1, T2(T1, Boolean)Overloaded.
Attempts to get components on a gameobject.
(Defined by ExtensionMethods.)
Top
See Also