Archon.SwissArmyLib.Events.Loops Namespace |
[Missing <summary> documentation for "N:Archon.SwissArmyLib.Events.Loops"]
Class | Description | |
---|---|---|
CustomUpdateLoopBase |
An abstract class for custom update loops that implement basic
functionality to track invokation times and deltatimes.
| |
FrameIntervalUpdateLoop |
A basic custom update loop that runs every nth frame.
| |
ManagedUpdate |
A relay for Unity update events.
Here's why you might want to use this:
https://blogs.unity3d.com/2015/12/23/1k-update-calls/
In short; avoid overhead of Native C++ --> Managed C# calls.
Also useful for non-MonoBehaviours that needs to be part of the update loop as well.
Built-in events your can subscribe to:
You can also create your own custom update loops (eg. to run every nth second) using
AddCustomUpdateLoop(ICustomUpdateLoop, UpdateLoop, Int32) and AddListener(Int32, Action, Int32).
| |
ManagedUpdateEventIds |
Relayed event ids.
| |
ManagedUpdateBehaviour |
A subclass of MonoBehaviour that uses ManagedUpdate for update events.
To receive updates implement one or more of the appropriate interfaces:
IUpdateable, ILateUpdateable, IFixedUpdateable and ICustomUpdateable.
| |
TimeIntervalUpdateLoop |
A basic custom update loop that runs every nth second either in scaled or unscaled time.
|
Interface | Description | |
---|---|---|
ICustomUpdateable |
Makes a ManagedUpdateBehaviour subclass get notified when a custom update loop ticks.
| |
ICustomUpdateLoop |
Represents an implementation of a custom update loop.
You will probably be better of subclassing CustomUpdateLoopBase for
a simpler start, but it's here if you need it.
| |
IFixedUpdateable |
Makes a ManagedUpdateBehaviour subclass get notified on a fixed update.
| |
ILateUpdateable |
Makes a ManagedUpdateBehaviour subclass get notified on a late update.
| |
IUpdateable |
Makes a ManagedUpdateBehaviour subclass get notified on an update.
|