API reference
API reference
Select your platform
No SDKs available
No versions available

IUpdateDriver Interface

An IUpdateDriver is an object which presents its own instance-level concept of an "update." Because certain aspects of Interaction SDK core logic require order-sensitive processing across multiple instances (for example, correctly interleaving the processing phases of IInteractors within an InteractorGroup), IUpdateDriver provides a cohesive execution model not readily available in Unity's built-in update mechanism alone.
This is part of Interaction SDK core logic, you should not call it directly.

Properties

Returns true if the current instance is responsible for invoking its own Drive method, false otherwise.
If this IUpdateDriver is not a root driver, then some other instance (typically another IUpdateDriver) is responsible for invoking execution. In this way, IUpdateDriver instances form a tree, with Drive execution beginning from the root.

Member Functions

Runs the processing to "update" the current instance.
This is conceptually similar to Unity's built-in update mechanism, but bound to a structure which allows execution order to be more explicitly controlled. This is part of Interaction SDK core logic, and it is not recommended that direct dependencies be taken on this execution order. Instead, changes to interaction state should be handled by observing events such as IInteractorView.WhenStateChanged, which will allow correct handling without depending on the details of execution order.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon