NewInputSyncFindActionId Method

Finds the unique identifier of an input action by its name or identifier string.

Definition

Namespace: Alteruna.Multiplayer
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
C#
public Guid FindActionId(
	string actionNameOrId,
	bool throwIfNotFound = false
)

Parameters

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.

Return Value

Guid
The unique identifier (GUID) of the input action if found; otherwise, behavior depends on the value of throwIfNotFound.

Exceptions

ArgumentNullExceptionactionNameOrId is null.
ArgumentExceptionThrown 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.

See Also