Toggle Objects is a script which makes it an easy function to disable a mass amount of GameObjects and Renderers stored in one script, to allow for one reference to disable many game objects in an Unity Event Call.
Field | Description |
---|---|
Renderers | Reference Mesh and Skinned Mesh Renderes here to Toggle. Will not toggle GameObject, just the renderer itself. |
Behaviours | References scripts and behaviors. Will toggle scripts and behaviours but not the GameObject. |
Game Objects | References GameObjects. Will completly toggle GameObjects. |
Update on Android Export | Used Internally [Should Be Removed]. |
Using Unity Events, such as Event Linkers , you can use the ToggleObjects(bool) to enable/disable the referenced GameObjects.