Class HeightAboveFloorCondition
Represents a situation where a given plane must be within a certain height off the floor
Inheritance
HeightAboveFloorCondition
Syntax
[ComponentTooltip("Requires the object be raised above the floor.")]
[MonoBehaviourComponentMenu(typeof(HeightAboveFloorCondition), "Condition/Height Above Floor")]
[CreateFromDataOptions(0, false)]
public class HeightAboveFloorCondition : Condition<float>, ISimulatable, ICondition<float>, ICondition, IConditionBase, IRequiresTraits<float>, IRequiresTraits, ICreateFromData
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
OptimizeForData(TraitDataSnapshot)
Declaration
public void OptimizeForData(TraitDataSnapshot data)
Parameters
Implements
RateDataMatch(ref Single)
Declaration
public override float RateDataMatch(ref float height)
Parameters
Type |
Name |
Description |
Single |
height |
|
Returns
Overrides
Unity.MARS.Condition<System.Single>.RateDataMatch(System.Single)
Extension Methods