VTIObjectToggle

From WaffleSlapper's Project Wiki


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.