DustProductions.TriggerMeTimbers Namespace |
Class | Description | |
---|---|---|
CacheableTriggerable |
A Triggerable that also performs caching, allowing us to easily set values to their cached versions.
| |
Trigger |
Triggers are objects that care about something in the world and notify Triggerables when the thing they care about happens. The notification is in the form of either sending the Triggerable true or false.
| |
Triggerable |
Inherit from this to easily implement Triggerable behaviour. Once you do so, and implement the abstract methods, you will be able to hook your class into all the Triggers TriggerMeTimbers has to offer. If you are unable to inherit from this, you can also just implement the ITriggerable interface.
| |
TriggerableAddForceToRigidbody |
Use apply physics forces to a Rigidbody on some sort of trigger. If you aren't sure what type of force to use, check Unity's documentation.
| |
TriggerableAudioSourcePlayback |
Control the playback for a AudioSource based on some sort of trigger.
| |
TriggerablePlayAnimation | Obsolete.
This class was used to play animations for versions prior to Unity 2017.3, but it now no longer works. It will be replaced in a future version of Trigger Me Timbers. No additional documentation will be provided.
| |
TriggerableSelectSelectable |
Allows the selection of UnityEngine.UI.Selectable objects. Only one Selectable can ever be selected in the game at a time.
| |
TriggerableSetAudioSourceAudioClip |
Swaps the AudioClip on AudioSources based on some sort of trigger.
| |
TriggerableSetBehavioursEnabled |
Allows you to set Behaviours to a custom enabled status, or back to what they were when cached on some sort of trigger.
| |
TriggerableSetColor |
Sets Color values on some sort of trigger.
| |
TriggerableSetFloat |
Sets float values on some sort of trigger.
| |
TriggerableSetGameObjectsActive |
Allows you to set GameObjects to a custom active status, or back to what they were when cached on some sort of trigger.
| |
TriggerableSetImageSprite |
Sets the Sprite on an Image based on some sort of trigger.
| |
TriggerableSetInputText |
Sets the text of an InputField on a trigger.
| |
TriggerableSetMouseCursor |
Sets the mouse pointer to a predefined CursorDefinition based on some sort of trigger.
| |
TriggerableSetText |
Allows you to set Text components to a custom string or back to their cached value on a trigger.
| |
TriggerableSetToggle |
Use to set Toggles to a value when triggered.
| |
TriggerableSetTransformValues |
Allows you to set values on a Transform based on some other behaviour. Works for Transforms and RectTransforms.
| |
TriggerFilter |
This is both a Trigger and an ITriggerable, which means it can be a bridge between the two. The reason this class exists in that way is so you can consolidate multiple Triggers into a single Trigger.
| |
TriggerOnAwake |
Triggers when Awake or OnDestroy are called.
| |
TriggerOnButtonClick |
Allows you to Trigger things when a Button is clicked.
| |
TriggerOnColliderTrigger |
Triggers when this object collides with a Collider that has "Is Trigger" set to true.
| |
TriggerOnCollision |
Triggers when this object collides with another collider.
| |
TriggerOnDrag |
Triggers when the pointer attempts to drag a UI object.
| |
TriggerOnEnable |
Triggers when this MonoBehaviour is enabled or disabled.
| |
TriggerOnHover |
Triggers when a pointer enters or exits a UI object's area.
| |
TriggerOnInputText |
Triggers when certain things happen to an InputField class.
| |
TriggerOnKeyPress |
Triggers when an input button or combination of buttons is pressed. This MonoBehaviour has to use the Update function. The highest performance trigger setting is "OnAnyKey", followed by "OnAnyKeyInArray", followed by "OnAllKeysInArray".
This component provides a simple way to handle input in your game. For more complicated games, you might wish to extend this or write a custom solution.
| |
TriggerOnPointerClick |
Triggers when the pointer clicks on a UI element.
| |
TriggerOnSceneLoad |
Trigger that pays attention to scene loading.
| |
TriggerOnStart |
Trigger on Unity's Start and OnDestroy calls.
| |
TriggerOnTimer |
Triggers when a certain amount of time passes. Time passing is based on Time.deltaTime called in Update.
| |
TriggerOnToggled |
Triggers when things happen to a Toggle.
| |
TriggerOnUpdate |
Uses Unity's Update functions to send Triggers.
I would recommend using as few of these as possible, as most everything should be able to be done without the Update functions using Trigger Me Timbers.
|
Interface | Description | |
---|---|---|
ITriggerable |
Implement this interface on anything you want to hook into a Trigger. Useful if you have some other inheritance (preventing you from inheriting from the Triggerable class), and still want to leverage everything TriggerMeTimbers has to offer.
|