Search Results for

    Show / Hide Table of Contents

    Class AxisMonoBehaviour

    Abstract class base for all monobehaviours inside Axis environment Contains some of the basic calls that any component in the scene should be able to call

    Inheritance
    object
    AxisMonoBehaviour
    AxisGameObject
    AxisInput
    AxisAnimateUI
    AxisGamepadConnectedUI
    AxisLabelUI
    AxisPerformanceStats
    AxisExtension
    AxisCounterMatchCondition
    AxisCounterObjects
    AxisCounterUI
    AxisEventHandler
    AxisUnitPlacer
    SpawnedObject
    ObjFeature
    AxisMarkRenderer
    AxisMaterial
    AxisTargetFrameRate
    Namespace: Axis
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class AxisMonoBehaviour : MonoBehaviour

    Properties

    collider

    [Read-only] Transform cache

    Declaration
    public Collider collider { get; }
    Property Value
    Type Description
    Collider

    gameObject

    [Read-only] Transform cache

    Declaration
    public GameObject gameObject { get; }
    Property Value
    Type Description
    GameObject

    Origin

    Topmost NavObject if this is child of one

    Declaration
    public NavObject Origin { get; set; }
    Property Value
    Type Description
    NavObject

    transform

    [Read-only] Transform cache

    Declaration
    public Transform transform { get; }
    Property Value
    Type Description
    Transform

    Methods

    ContainsLabel(string)

    Declaration
    public bool ContainsLabel(string label)
    Parameters
    Type Name Description
    string label
    Returns
    Type Description
    bool

    ContainsLabelInChildren(string, bool)

    Declaration
    public bool ContainsLabelInChildren(string label, bool includeInactive = false)
    Parameters
    Type Name Description
    string label
    bool includeInactive
    Returns
    Type Description
    bool

    CountChildrenWithLabel(string, bool)

    Declaration
    public int CountChildrenWithLabel(string label, bool includeInactive = false)
    Parameters
    Type Name Description
    string label
    bool includeInactive
    Returns
    Type Description
    int

    GameTimeScaleSet(float)

    Changes timescale of simulation time, useful for accelerating simulation or creating slow motion effect.

    Declaration
    public void GameTimeScaleSet(float timeScale)
    Parameters
    Type Name Description
    float timeScale

    GetSpaceBetweenColliders(AxisMonoBehaviour)

    Declaration
    public float GetSpaceBetweenColliders(AxisMonoBehaviour other)
    Parameters
    Type Name Description
    AxisMonoBehaviour other
    Returns
    Type Description
    float

    GetSpaceBetweenCollidersHorizontally(AxisMonoBehaviour)

    Declaration
    public float GetSpaceBetweenCollidersHorizontally(AxisMonoBehaviour other)
    Parameters
    Type Name Description
    AxisMonoBehaviour other
    Returns
    Type Description
    float

    OnTransformChildrenChanged()

    Declaration
    protected virtual void OnTransformChildrenChanged()

    PauseGame()

    Pauses Axis simulation time, the app still running but all elements related to Axis and gameplay simulation freeze.

    Declaration
    public void PauseGame()

    ResumeGame()

    Resumes Axis simulation time.

    Declaration
    public void ResumeGame()

    SetActiveByName(string)

    Sets first GameObjects with given name active

    Declaration
    public void SetActiveByName(string name)
    Parameters
    Type Name Description
    string name

    Given name

    In This Article
    Back to top Axis 1.0.0