VTIObjectToggle: Difference between revisions

From WaffleSlapper's Project Wiki
(Clarified User Messaging support style.)
(Added StayOn and updated Network Sync.)
 
Line 11: Line 11:
| '''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, does not sync to new joiners
| '''Network Sync''' || Triggers on all Clients, object toggle state syncs to new joiners
|-
|-
|}
|}
Line 25: Line 25:
|-
|-
| MessageText || TextMeshPro || The TMP object to populate with User Message 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.
| 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.

Driver Capabilities
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
Inputs
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.