Show / Hide Table of Contents

Class DefaultCursor

The default cursor used in an inventory pane

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
Cursor
DefaultCursor
Inherited Members
Cursor.DefaultCursorPrefab
Cursor.Panel
Cursor.HighlightedElement
Cursor.Show()
Cursor.Hide()
Cursor.Begin(InventoryPanel, InventoryElement)
Cursor.End()
Cursor.MoveTo(InventoryElement)
Namespace: WeaverCore.Inventory
Assembly: WeaverCore.dll
Syntax
public class DefaultCursor : Cursor

Properties

| Edit this page View Source

CursorPosition

The current position of the cursor

Declaration
public override Vector3 CursorPosition { get; }
Property Value
Type Description
Vector3
Overrides
Cursor.CursorPosition

Methods

| Edit this page View Source

CanMove()

Can the cursor be moved to a new element?

Declaration
public override bool CanMove()
Returns
Type Description
bool
Overrides
Cursor.CanMove()
| Edit this page View Source

OnBegin(InventoryElement)

Called when the inventory pane is opened

Declaration
protected override void OnBegin(InventoryElement beginElement)
Parameters
Type Name Description
InventoryElement beginElement

The element the cursor should start on

Overrides
Cursor.OnBegin(InventoryElement)
| Edit this page View Source

OnEnd()

Called when the inventory pane is closed

Declaration
protected override void OnEnd()
Overrides
Cursor.OnEnd()
| Edit this page View Source

OnHide()

Called when the cursor is to become invisible

Declaration
protected override void OnHide()
Overrides
Cursor.OnHide()
| Edit this page View Source

OnMoveTo(InventoryElement)

Called when the cursor is to move to a new InventoryElement

Declaration
protected override void OnMoveTo(InventoryElement element)
Parameters
Type Name Description
InventoryElement element

The new inventory element to move to

Overrides
Cursor.OnMoveTo(InventoryElement)
| Edit this page View Source

OnShow()

Called when the cursor is to become visible

Declaration
protected override void OnShow()
Overrides
Cursor.OnShow()

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾