Class PlaneSizeCondition
Represents a situation where a given plane must have a size within a certain range
Inheritance
PlaneSizeCondition
Syntax
[ComponentTooltip("Requires the object to be a plane within the specified size range.")]
[MonoBehaviourComponentMenu(typeof(PlaneSizeCondition), "Condition/Plane Size")]
[CreateFromDataOptions(1, true)]
public class PlaneSizeCondition : BoundedRangeCondition<Vector2>, ISimulatable, ICondition<Vector2>, ICondition, IConditionBase, IRequiresTraits<Vector2>, IRequiresTraits, IConfigurableMatchRating, IRangeBoundingOptions, ISpatialCondition, ICreateFromData, IAdjustableComponent
Properties
Adjusting
Declaration
public bool Adjusting { get; set; }
Property Value
Implements
maximumSize
Maximum size of the plane's extents
Declaration
public Vector2 maximumSize { get; set; }
Property Value
minimumSize
Minimum size of the plane's extents
Declaration
public Vector2 minimumSize { get; set; }
Property Value
noMinMaxWarning
Declaration
public bool noMinMaxWarning { get; }
Property Value
smallMinMaxRangeWarning
Declaration
public bool smallMinMaxRangeWarning { get; }
Property Value
Methods
Declaration
public string FormatDataString(TraitDataSnapshot data)
Parameters
Returns
Implements
GetConditionRatingForData(TraitDataSnapshot)
Declaration
public float GetConditionRatingForData(TraitDataSnapshot data)
Parameters
Returns
Implements
GetRequiredTraits()
Declaration
public override TraitRequirement[] GetRequiredTraits()
Returns
Overrides
IncludeData(TraitDataSnapshot)
Declaration
public void IncludeData(TraitDataSnapshot data)
Parameters
Implements
OnEnable()
Declaration
OnValidate()
Declaration
public override void OnValidate()
Overrides
OptimizeForData(TraitDataSnapshot)
Declaration
public void OptimizeForData(TraitDataSnapshot data)
Parameters
Implements
RateDataMatch(ref Vector2)
Declaration
public override float RateDataMatch(ref Vector2 data)
Parameters
Type |
Name |
Description |
Vector2 |
data |
|
Returns
Overrides
Unity.MARS.Condition<Vector2>.RateDataMatch(Vector2)
Events
AdjustingChanged
Declaration
public event Action<bool> AdjustingChanged
Event Type
Implements
HandleChanged
Declaration
public event Action HandleChanged
Event Type
HandleChangeEnded
Declaration
public event Action HandleChangeEnded
Event Type
Extension Methods