Class Glyph
Data about a particular input including Sprite and string.
Inherited Members
Namespace: LMirman.RewiredGlyphs
Assembly: .dll
Syntax
[Serializable]
public class Glyph
Constructors
| Name | Description |
|---|---|
| Glyph(int, string, Sprite, Type) | |
| Glyph(int, string, Sprite, Sprite, Sprite, Type) | |
| Glyph(int, string, ControllerType?, Sprite, Type) | |
| Glyph(int, string, ControllerType?, Sprite, Sprite, Sprite, Type) | |
| Glyph(string, Sprite, Type) | |
| Glyph(string, ControllerType?, Sprite, Type) | Create a fallback glyph that only contains a description. |
Properties
| Name | Description |
|---|---|
| ControllerType | The Rewired.ControllerType that this Glyph intends to represent. |
| Description | Deprecated description of the input that formerly represent an absolute description of the Glyph. Superseded by GetDescription(AxisRange) and FullDescription. |
| FullDescription | The description of this input for the device for the AxisRange.Full axis. |
| FullSprite | The sprite representing this input for the AxisRange.Full axis. |
| GlyphType | What this Glyph is intended to represent at runtime. |
| InputID | The ID for this glyph in the context of this glyph map. |
| IsFallbackGlyph | |
| IsInputGlyph | |
| NegativeDescription | The description of this input for the device for the AxisRange.Negative axis. |
| NegativeSprite | The sprite representing this input for the AxisRange.Negative axis. |
| PositiveDescription | The description of this input for the device for the AxisRange.Positive axis. |
| PositiveSprite | The sprite representing this input for the AxisRange.Positive axis. |
| PreferDescription | When true this Glyph should show as text instead of its sprite. |
| TextMeshSpriteSheetName | The name of the text mesh sprite sheet that contains the sprites for this glyph. |
Methods
| Name | Description |
|---|---|
| GetDescription(AxisRange) | Get the description for a particular input direction. |
| GetSprite(AxisRange) | Get the sprite for a particular input direction. |