NewInputSyncFindActionT(String) Method

Finds the synchronized input action associated with the specified name or identifier string and casts it to the specified type.

Definition

Namespace: Alteruna.Multiplayer
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
C#
public NewInputSyncInputActionSyncAction<T> FindAction<T>(
	string actionNameOrId
)
where T : struct, new()

Parameters

actionNameOrId  String
The name or identifier of the input action to find.

Type Parameters

T

Return Value

NewInputSyncInputActionSyncActionT
An NewInputSyncInputActionSync instance representing the synchronized input action of given type.

Exceptions

ArgumentExceptionThrown if the specified input action cannot be found or if the name or identifier is invalid.

See Also