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
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 |
|
[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
ContainsLabelInChildren(string, bool)
Declaration
public bool ContainsLabelInChildren(string label, bool includeInactive = false)
Parameters
Type |
Name |
Description |
string |
label |
|
bool |
includeInactive |
|
Returns
CountChildrenWithLabel(string, bool)
Declaration
public int CountChildrenWithLabel(string label, bool includeInactive = false)
Parameters
Type |
Name |
Description |
string |
label |
|
bool |
includeInactive |
|
Returns
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
Returns
GetSpaceBetweenCollidersHorizontally(AxisMonoBehaviour)
Declaration
public float GetSpaceBetweenCollidersHorizontally(AxisMonoBehaviour other)
Parameters
Returns
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
ResumeGame()
Resumes Axis simulation time.
Declaration
SetActiveByName(string)
Sets first GameObjects with given name active
Declaration
public void SetActiveByName(string name)
Parameters
Type |
Name |
Description |
string |
name |
Given name
|