Class MarkerCondition
Represents a situation that depends on the existence of a specific marker
Inherited Members
Namespace: Unity.MARS.Conditions
Syntax
public class MarkerCondition : Condition<string>, ISimulatable, ICondition<string>, ICondition, IConditionBase, IRequiresTraits<string>, IRequiresTraits
Properties
MarkerGuid
The guid to match against
Declaration
public string MarkerGuid { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
GetRequiredTraits()
Get the TraitRequirements that are required by this object
Declaration
public override TraitRequirement[] GetRequiredTraits()
Returns
| Type | Description |
|---|---|
| TraitRequirement[] | The required traits |
Overrides
RateDataMatch(ref String)
Describe how well a given piece of data matches a condition. 0 means the match is unacceptable, 1 means a perfect match
Declaration
public override float RateDataMatch(ref string data)
Parameters
| Type | Name | Description |
|---|---|---|
| String | data |
Returns
| Type | Description |
|---|---|
| Single | A number from 0 to 1 indicating how well a piece of data watches this condition |
Overrides
Unity.MARS.Condition<System.String>.RateDataMatch(System.String)