Skip to content

M_MSCLoader_PlayMakerExtensions_FsmInject

piotrulos edited this page Apr 7, 2023 · 4 revisions

PlayMakerExtensions.FsmInject Method

FSM Inject as extension (same as old FsmHook.FsmInject)

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

Syntax

C#

public static void FsmInject(
	this GameObject gameObject,
	string stateName,
	Action hook
)

View Source

Parameters

 

gameObject
Type: GameObject
GameObject where to hook
stateName
Type: System.String
Name of the state
hook
Type: System.Action
Your function to hook

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GameObject. 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

Clone this wiki locally