Class MultiCondition<TCondition1, TCondition2, TCondition3>
Base class for conditions that interact with three traits at once This handles all the necessary wiring of making sure the SubConditions are properly serialized, available for queries and that each SubCondition has a proper reference back to the host
Inheritance
MultiCondition<TCondition1, TCondition2, TCondition3>
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MARS.Conditions
Assembly: Unity.MARS.dll
Syntax
public class MultiCondition<TCondition1, TCondition2, TCondition3> : MultiConditionBase, ISimulatable, IComponentHost<ICondition>, ISerializationCallbackReceiver where TCondition1 : SubCondition, ICondition, new() where TCondition2 : SubCondition, ICondition, new() where TCondition3 : SubCondition, ICondition, new()
Type Parameters
Name | Description |
---|---|
TCondition1 | The type of the first SubCondition |
TCondition2 | The type of the second SubCondition |
TCondition3 | The type of the third SubCondition |
Constructors
MultiCondition()
Declaration
public MultiCondition()
Fields
m_Condition1
Declaration
[SerializeField]
protected TCondition1 m_Condition1
Field Value
Type | Description |
---|---|
TCondition1 |
m_Condition2
Declaration
[SerializeField]
protected TCondition2 m_Condition2
Field Value
Type | Description |
---|---|
TCondition2 |
m_Condition3
Declaration
[SerializeField]
protected TCondition3 m_Condition3
Field Value
Type | Description |
---|---|
TCondition3 |
Methods
OnAfterDeserialize()
Implement this callback to transform data back into runtime data types after an object is deserialized.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Implement this callback to transform data into serializable data types immediately before an object is serialized.
Declaration
public void OnBeforeSerialize()
Implements
Unity.XRTools.Utils.IComponentHost<THostType>