Behaviors
The Architecture Toolkit includes several behaviors that can be used across an application. All of the behaviors derive from MonoBehaviour
.
CursorLockState
Sets the lock state of the cursor when the behavior is enabled and disabled.
CursorVisibility
Sets the visibility of the cursor when the behavior is enabled and disabled.
LoadScene
Loads a scene using a specified set of options.
Singleton<T>
Ensures only a single instance of a specified type is instantiated in the scene. The singleton will be destroyed when the scene is unloaded.
SingletonPersistent<T>
Ensures only a single instance of a specified type is instantiated in the scene. The singleton will not be destroyed when changing scenes, thus making it persistent.
TargetFrameRate
Sets the target frame rate of the application.
TimedBehaviour
Invokes timed events at a set interval and/or duration.
UpdateBehaviour
An abstract class to derive from that can run in any update mode. The update mode can be changed as needed without incurring any additional performance cost.