M_MSCLoader_PlayMakerExtensions_GetVariable__1 - piotrulos/MSCModLoader GitHub Wiki

GetVariable<T> Method

Get a variable of specified type and name.

Definition

Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.3.356

C#

public static T GetVariable<T>(
	this PlayMakerFSM pm,
	string ID
)
where T : class, new()

View Source

Parameters

  PlayMakerFSM
PlayMakerFSM from which to get the variable.
  String
Name of the variable to find.

Type Parameters

Type of FSM Variable to get.

Return Value

T
The specified variable if it is found, otherwise null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PlayMakerFSM. When you use instance method syntax to call this method, omit the first parameter. For more information, see

Extension Methods (Visual Basic) or

Extension Methods (C# Programming Guide).

See Also

Reference

PlayMakerExtensions Class
MSCLoader Namespace

⚠️ **GitHub.com Fallback** ⚠️