Class SemanticTagCondition
Represents a situation that depends on the existence or lack of a certain trait
Inheritance
SemanticTagCondition
Syntax
[ComponentTooltip("Requires the object to have or lack the specified trait.")]
[MonoBehaviourComponentMenu(typeof(SemanticTagCondition), "Condition/Semantic Tag")]
[CreateFromDataOptions(0, true)]
public class SemanticTagCondition : Condition<bool>, ISimulatable, ISemanticTagCondition, ICondition<bool>, ICondition, IConditionBase, IRequiresTraits<bool>, IRequiresTraits, ICreateFromData
Properties
matchRule
Declaration
public SemanticTagMatchRule matchRule { get; set; }
Property Value
Implements
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
Implements
IncludeData(TraitDataSnapshot)
Declaration
public void IncludeData(TraitDataSnapshot data)
Parameters
Implements
OptimizeForData(TraitDataSnapshot)
Declaration
public void OptimizeForData(TraitDataSnapshot data)
Parameters
Implements
RateDataMatch(ref Boolean)
Declaration
public override float RateDataMatch(ref bool data)
Parameters
Returns
Overrides
Unity.MARS.Condition<System.Boolean>.RateDataMatch(System.Boolean)
Implements
SetTraitName(String)
Declaration
public void SetTraitName(string newName)
Parameters
Type |
Name |
Description |
String |
newName |
|
Extension Methods