(Initial driver page.) |
(Added StayOn and updated Network Sync.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|+ Driver Capabilities | |+ Driver Capabilities | ||
|- | |- | ||
| '''Supports User Messaging''' || Yes | | '''Supports User Messaging''' || Yes - Uses two TextMeshPro objects for Username and Message Inputs | ||
|- | |- | ||
| '''Supports Dynamic Rebinding''' || Yes - Appends Trigger Verb to UserName String | | '''Supports Dynamic Rebinding''' || Yes - Appends Trigger Verb to UserName String | ||
|- | |- | ||
| '''Network Sync''' || Triggers on all Clients, | | '''Network Sync''' || Triggers on all Clients, object toggle state syncs to new joiners | ||
|- | |- | ||
|} | |} | ||
Line 20: | Line 20: | ||
! Name !! Type !! Usage | ! Name !! Type !! Usage | ||
|- | |- | ||
| Target || GameObject || The GameObject to toggle on/off when Firing | | Target || GameObject || The GameObject to toggle on/off when Firing. | ||
|- | |- | ||
| UserNameText || TextMeshPro || The TMP object to populate with UserName and Verb text | | UserNameText || TextMeshPro || The TMP object to populate with UserName and Verb text. | ||
|- | |- | ||
| MessageText || TextMeshPro || The TMP object to populate with User Message text | | MessageText || TextMeshPro || The TMP object to populate with User Message text. | ||
|- | |- | ||
| ResetTime || float || How long to keep Target enabled for before disabling | | StayOn || bool || Whether or not to leave Target enabled after triggering (true), or to turn it back off after ResetTime (false). | ||
|- | |||
| ResetTime || float || How long to keep Target enabled for before disabling. | |||
|} | |} |
Latest revision as of 21:37, 23 March 2024
VTIObjectToggle is a VTI Driver that will enable a target GameObject when fired, wait for a given amount of time, and then disable the target.
Supports User Messaging | Yes - Uses two TextMeshPro objects for Username and Message Inputs |
Supports Dynamic Rebinding | Yes - Appends Trigger Verb to UserName String |
Network Sync | Triggers on all Clients, object toggle state syncs to new joiners |
Name | Type | Usage |
---|---|---|
Target | GameObject | The GameObject to toggle on/off when Firing. |
UserNameText | TextMeshPro | The TMP object to populate with UserName and Verb text. |
MessageText | TextMeshPro | The TMP object to populate with User Message text. |
StayOn | bool | Whether or not to leave Target enabled after triggering (true), or to turn it back off after ResetTime (false). |
ResetTime | float | How long to keep Target enabled for before disabling. |