Inventory Engine v4.2
Loading...
Searching...
No Matches
MoreMountains.Tools.MMToggleActive Class Reference

This very simple class simply exposes a method to toggle the GameObject it's on (or a target one if left empty in the inspector) active or inactive. More...

Inherits MonoBehaviour.

Public Member Functions

virtual void ToggleActive ()
 Toggles the target gameobject's active state.

Public Attributes

GameObject TargetGameObject
 the target gameobject to toggle. Leave blank for auto grab
bool ToggleActiveButton
 a test button

Protected Member Functions

virtual void Awake ()
 On awake, grabs self if needed.

Detailed Description

This very simple class simply exposes a method to toggle the GameObject it's on (or a target one if left empty in the inspector) active or inactive.

Member Function Documentation

◆ Awake()

virtual void MoreMountains.Tools.MMToggleActive.Awake ( )
protectedvirtual

On awake, grabs self if needed.

◆ ToggleActive()

virtual void MoreMountains.Tools.MMToggleActive.ToggleActive ( )
virtual

Toggles the target gameobject's active state.

Member Data Documentation

◆ TargetGameObject

GameObject MoreMountains.Tools.MMToggleActive.TargetGameObject

the target gameobject to toggle. Leave blank for auto grab

◆ ToggleActiveButton

bool MoreMountains.Tools.MMToggleActive.ToggleActiveButton

a test button


The documentation for this class was generated from the following file: