Class MultiRelation<TRelation1, TRelation2>
Base class for conditions that interact with two traits at once This handles all the necessary wiring of making sure the SubRelations are properly serialized, available for queries and that each SubRelation has a proper reference back to the host
Inheritance
MultiRelation<TRelation1, TRelation2>
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 MultiRelation<TRelation1, TRelation2> : MultiRelationBase, ISimulatable, IComponentHost<IRelation>, ISerializationCallbackReceiver where TRelation1 : SubRelation, IRelation, new() where TRelation2 : SubRelation, IRelation, new()
Type Parameters
| Name | Description |
|---|---|
| TRelation1 | The type of the first SubRelation |
| TRelation2 | The type of the second SubRelation |
Fields
m_Relation1
Declaration
[SerializeField]
protected TRelation1 m_Relation1
Field Value
| Type | Description |
|---|---|
| TRelation1 |
m_Relation2
Declaration
[SerializeField]
protected TRelation2 m_Relation2
Field Value
| Type | Description |
|---|---|
| TRelation2 |
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()
SetChildren(Proxy, Proxy)
Declaration
public override void SetChildren(Proxy context1, Proxy context2)
Parameters
| Type | Name | Description |
|---|---|---|
| Proxy | context1 | |
| Proxy | context2 |
Overrides
Implements
Unity.XRTools.Utils.IComponentHost<THostType>