Class GlobalSystemGraph
Global system graph object to manage timing and physics.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Mechatronics.SystemGraph
Syntax
[DefaultExecutionOrder(-999990)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.systemgraph@2.0/manual/Architecture.html")]
public class GlobalSystemGraph : MonoBehaviour
Fields
_managedPhysics
Field set in the inspector if this object should manage the physics
Declaration
public bool _managedPhysics
Field Value
| Type | Description |
|---|---|
| Boolean |
_realtimeProfiler
Inspector timing debug data.
Declaration
[NonSerialized]
public Gradient _realtimeProfiler
Field Value
| Type | Description |
|---|---|
| Gradient |
_timeDistance
Keep tracks of time drifting
Declaration
[NonSerialized]
public float _timeDistance
Field Value
| Type | Description |
|---|---|
| Single |
_timeJitterPercent
Keep tracks of time jitter
Declaration
[NonSerialized]
public double _timeJitterPercent
Field Value
| Type | Description |
|---|---|
| Double |
_timeMechanism
Current time step mode set in the inspector
Declaration
public GlobalSystemGraph.TimeStepMechanism _timeMechanism
Field Value
| Type | Description |
|---|---|
| GlobalSystemGraph.TimeStepMechanism |
_updateTimePeriod
Period, to be used with the specific timestep mode.
Declaration
public float _updateTimePeriod
Field Value
| Type | Description |
|---|---|
| Single |
kWarmUpCount
Iterations to consume after game start to prime the generation of statistics (Stabilization cycles)
Declaration
public static int kWarmUpCount
Field Value
| Type | Description |
|---|---|
| Int32 |
Methods
IsPlayMode()
Checks if the application is playing.
Declaration
public static bool IsPlayMode()
Returns
| Type | Description |
|---|---|
| Boolean | True for standalone and if playmode in editor, false otherwise. |
SetPhysicAutoSimulation(Boolean)
Set the physics autosimulation flags in Unity
Declaration
public static void SetPhysicAutoSimulation(bool autoSimulation)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | autoSimulation | Unity manages physics simulation when true |