Class NonBinaryRelation<TRange, TTrait>
Base class for all relations which have a match rating beyond simple pass/fail
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
[RequireComponent(typeof(ProxyGroup))]
public abstract class NonBinaryRelation<TRange, TTrait> : Relation<TTrait>, ISimulatable, IRelation<TTrait>, IRelation, IRelationBase, IConditionBase, IRequiresTraits<TTrait>, IRequiresTraits, ICreateFromDataPair, IConfigurableMatchRating, IRangeBoundingOptions<TRange>, IRangeBoundingOptions
Type Parameters
Name | Description |
---|---|
TRange | |
TTrait |
Fields
m_MaxBounded
Declaration
[SerializeField]
protected bool m_MaxBounded
Field Value
Type | Description |
---|---|
bool |
m_Maximum
Declaration
[SerializeField]
[Tooltip("Sets the maximum value accepted for a match between the two child objects")]
protected TRange m_Maximum
Field Value
Type | Description |
---|---|
TRange |
m_MinBounded
Declaration
[SerializeField]
protected bool m_MinBounded
Field Value
Type | Description |
---|---|
bool |
m_Minimum
Declaration
[SerializeField]
[Tooltip("Sets the minimum value accepted for a match between the two child objects")]
protected TRange m_Minimum
Field Value
Type | Description |
---|---|
TRange |
m_RatingConfig
Declaration
[SerializeField]
[HideInInspector]
protected RatingConfiguration m_RatingConfig
Field Value
Type | Description |
---|---|
RatingConfiguration |
Properties
maxBounded
Whether the data must be at most a certain value
Declaration
public bool maxBounded { get; set; }
Property Value
Type | Description |
---|---|
bool |
maximum
Maximum value accepted for a match between the two child objects
Declaration
public TRange maximum { get; set; }
Property Value
Type | Description |
---|---|
TRange |
minBounded
Whether the data must be at least a certain value
Declaration
public bool minBounded { get; set; }
Property Value
Type | Description |
---|---|
bool |
minimum
Minimum value accepted for a match between the two child objects
Declaration
public TRange minimum { get; set; }
Property Value
Type | Description |
---|---|
TRange |
noMinMaxWarning
Declaration
public bool noMinMaxWarning { get; protected set; }
Property Value
Type | Description |
---|---|
bool |
ratingConfig
Declaration
public RatingConfiguration ratingConfig { get; set; }
Property Value
Type | Description |
---|---|
RatingConfiguration |
smallMinMaxRangeWarning
Declaration
public bool smallMinMaxRangeWarning { get; protected set; }
Property Value
Type | Description |
---|---|
bool |
Methods
OnRatingConfigChange()
Callback that runs after the rating configuration is set by code (not in the inspector)
Declaration
public virtual void OnRatingConfigChange()
OnValidate()
Declaration
public override void OnValidate()