Method GetSpecificCurrentGlyph
GetSpecificCurrentGlyph(Player, int, Pole, out AxisRange, SymbolPreference, bool, string)
Get a Glyph to represent an action for the user for the most recently used device.
Declaration
public static Glyph GetSpecificCurrentGlyph(this Player player, int actionID, Pole pole, out AxisRange axisRange, SymbolPreference symbolPreference, bool forceAxis = false, string collectionKey = null)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The player to evaluate for. This is relevant since different players are likely using different devices and maps. |
int | actionID | The integer ID for the action to evaluate.
|
Pole | pole | What is the polarity for the action?
|
AxisRange | axisRange | The axis range that should be utilized in the output glyph.
|
SymbolPreference | symbolPreference | The preferred hardware symbol type to use for Joystick glyphs |
bool | forceAxis | Usually the Input Glyph system, when |
string | collectionKey | Optionally used for getting glyphs from a non-default glyph collection. Should match the value of Key |
Returns
Type | Description |
---|---|
Glyph | A Glyph that can be utilized in UI elements to display the element that is associated with this particular action.
|
Remarks
This method should only be used if you want to explicitly determine the type of symbol (Xbox, Playstation, etc.) to show for the joystick glyph.
Use GetCurrentGlyph(Rewired.Player,int,Rewired.Pole,out Rewired.AxisRange,bool, string) in the cases where you don't want to specify.
GetSpecificCurrentGlyph(int, Pole, out AxisRange, SymbolPreference, int, bool, string)
Declaration
public static Glyph GetSpecificCurrentGlyph(int actionID, Pole pole, out AxisRange axisRange, SymbolPreference symbolPreference, int playerIndex = 0, bool forceAxis = false, string collectionKey = null)
Parameters
Type | Name | Description |
---|---|---|
int | actionID | |
Pole | pole | |
AxisRange | axisRange | |
SymbolPreference | symbolPreference | |
int | playerIndex | |
bool | forceAxis | |
string | collectionKey |
Returns
Type | Description |
---|---|
Glyph |
Remarks
This method should only be used if you want to explicitly determine the type of symbol (Xbox, Playstation, etc.) to show for the joystick glyph.