Click or drag to resize

ManagedUpdateAddListener Method (Int32, Action, Int32)

Adds a listener for an update loop. If it's not a custom update loop, you can instead subscribe directly using OnUpdate, OnLateUpdate or OnFixedUpdate.

Namespace:  Archon.SwissArmyLib.Events.Loops
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void AddListener(
	int eventId,
	Action listener,
	int priority = 0
)
Request Example View Source

Parameters

eventId
Type: SystemInt32
The event id of the update loop to subscribe to.
listener
Type: SystemAction
The listener to add to the update loop.
priority (Optional)
Type: SystemInt32
The priority of the listener, controlling whether the listener is called before (lower) or later (higher) than other listeners.
See Also