Class SuperBehaviour
SuperBehaviour is a MonoBehaviour that provides some additional functionality.
It provides a cached version of the transform and gameObject properties.
It also enables the use of SuperEditor and SerializedProperties.
[SuperIcon(SuperBehaviourIcon.Default)]
public class SuperBehaviour : MonoBehaviour
- Inheritance
-
SuperBehaviour
- Derived
Properties
IsDestroyed
Returns if this instance has been marked as destroyed by Unity.
public bool IsDestroyed { get; }
Property Value
- bool
True if the instance has been destroyed, false otherwise.
ShowProperties
Defines if the SerializedProperties of this SuperBehaviour should be shown in the inspector.
public bool ShowProperties { get; set; }
Property Value
gameObject
The GameObject attached to this SuperBehaviour.
This is a cached version of the gameObject property.
public GameObject gameObject { get; }
Property Value
- GameObject
transform
The Transform attached to this SuperBehaviour.
This is a cached version of the transform property.
public Transform transform { get; }