NewInputSyncFindActionId Method
Finds the unique identifier of an input action by its name or identifier string.
Namespace: Alteruna.MultiplayerAssembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
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. |