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.1.346

C#

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

View Source

Parameters

  PlayMakerFSM
PlayMakerFSM
  String
Name of the variable to find.

Type Parameters

Type of variable to get.

Return Value

T
PlayMaker variable

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** ⚠️