-
Notifications
You must be signed in to change notification settings - Fork 0
Drivers
Linear drivers are objects that the player can interact with that drive a one dimensional floating point variable. This can be used for many player interactables, like buttons, switches, slides, and joysticks. Linear drivers do not store the value they drive, that is managed by a DriverNetwork script placed on a parent object. A Driver network is a common storage place for these values so multiple drivers and drivables can use the same value, allowing them to connect implicitly.
Drivers are connected through a key. These keys are case-insensitive, and completely ignore spaces.
Non driver objects can both get and set values within a driver network with a key.
Drivables are a category of objects that are driven by a value within a DriverNetwork. Although there is a base class allowing for this functionality. This can be done simply with a key and a reference to a DriverNetwork.