NewInputSyncFindActionId Method
Finds the unique identifier of an input action by its name or identifier string.
Namespace: Alteruna.Multiplayer.UnityAssembly: Alteruna.Multiplayer.UnityFiles (in Alteruna.Multiplayer.UnityFiles.dll) Version: 1.0.0+c5328b35489e83c42e288435f5acf6115fd519e0
public Guid FindActionId(
string actionNameOrId,
bool throwIfNotFound = false
)
- actionNameOrId String
- The name or string identifier of the input action to find.
- throwIfNotFound Boolean (Optional)
- Specifies whether to throw an exception if the action is not found. Defaults to false.
GuidThe unique identifier (GUID) of the input action if found; otherwise, behavior depends on the value of
throwIfNotFound.
| ArgumentNullException | actionNameOrId is null. |
| ArgumentException | Thrown if throwIfNotFound is true and the action could not be found. -Or- If actionNameOrId contains a slash but is missing either the action or the map name. |