Class NonBinaryRelation<TRange, TTrait>
Base class for all relations which have a match rating beyond simple pass/fail
Inheritance
NonBinaryRelation<TRange, TTrait>
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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
m_Maximum
Declaration
[SerializeField]
[Tooltip("Sets the maximum value accepted for a match between the two child objects")]
protected TRange m_Maximum
Field Value
m_MinBounded
Declaration
[SerializeField]
protected bool m_MinBounded
Field Value
m_Minimum
Declaration
[SerializeField]
[Tooltip("Sets the minimum value accepted for a match between the two child objects")]
protected TRange m_Minimum
Field Value
m_RatingConfig
Declaration
[SerializeField]
[HideInInspector]
protected RatingConfiguration m_RatingConfig
Field Value
Properties
maxBounded
Whether the data must be at most a certain value
Declaration
public bool maxBounded { get; set; }
Property Value
maximum
Maximum value accepted for a match between the two child objects
Declaration
public TRange maximum { get; set; }
Property Value
minBounded
Whether the data must be at least a certain value
Declaration
public bool minBounded { get; set; }
Property Value
minimum
Minimum value accepted for a match between the two child objects
Declaration
public TRange minimum { get; set; }
Property Value
noMinMaxWarning
Declaration
public bool noMinMaxWarning { get; protected set; }
Property Value
ratingConfig
Declaration
public RatingConfiguration ratingConfig { get; set; }
Property Value
smallMinMaxRangeWarning
Declaration
public bool smallMinMaxRangeWarning { get; protected set; }
Property Value
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()
Overrides
Implements
Extension Methods