Class MarkerCondition
Represents a situation that depends on the existence of a specific marker
Inheritance
MarkerCondition
Inherited Members
Namespace: Unity.MARS.Conditions
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@1.5/manual/ReferenceGuideConditions.html#marker-condition-markercondition")]
[DisallowMultipleComponent]
[ComponentTooltip("Requires the object to be an image marker with a particular Guid.")]
[MonoBehaviourComponentMenu(typeof(MarkerCondition), "Condition/Image Marker")]
[MovedFrom("Unity.MARS")]
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)