Struct Cursor
Syntax
public struct Cursor : IEquatable<Cursor>
Properties
hotspot
The offset from the top left of the texture to use as the target point (must be within the bounds of the cursor).
Declaration
public Vector2 hotspot { get; set; }
Property Value
texture
The texture to use for the cursor style. To use a texture as a cursor, import the texture with "Read/Write enabled" in the texture importer (or using the "Cursor" defaults).
Declaration
public Texture2D texture { get; set; }
Property Value
Type |
Description |
Texture2D |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Equals(Cursor)
Declaration
public bool Equals(Cursor other)
Parameters
Type |
Name |
Description |
Cursor |
other |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Declaration
public override string ToString()
Returns
Operators
Equality(Cursor, Cursor)
Declaration
public static bool operator ==(Cursor style1, Cursor style2)
Parameters
Returns
Inequality(Cursor, Cursor)
Declaration
public static bool operator !=(Cursor style1, Cursor style2)
Parameters
Returns