Class SynthesizedMarker
Creates data for an MRMarker When added to a synthesized object, adds a trackable MRMarker to the database. When added to a simulated object, its data will be provided to the database by the simulated marker provider.
Inheritance
SynthesizedMarker
Inherited Members
Namespace: Unity.MARS.Data.Synthetic
Syntax
[RequireComponent(typeof(SynthesizedPose))]
[RequireComponent(typeof(SynthesizedBounds2D))]
[RequireComponent(typeof(SynthesizedMarkerId))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@1.5/manual/ReferenceGuideSyntheticData.html#synthesized-marker-synthesizedmarker")]
[MovedFrom("Unity.MARS.Data")]
public class SynthesizedMarker : SynthesizedTrackable<MRMarker>, ISimulatable, ISynthesizedData, IProvidesTraits<bool>, IProvidesTraits, IUsesMARSTrackableData<MRMarker>
Properties
TraitName
The trait name provided by this SynthesizedTrait
Declaration
public override string TraitName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Methods
GetData()
Get the MRMarker data for this SynthesizedMarker
Declaration
public override MRMarker GetData()
Returns
Type | Description |
---|---|
MRMarker | The MRMarker data |
Overrides
Unity.MARS.Data.Synthetic.SynthesizedTrackable<Unity.MARS.Data.MRMarker>.GetData()
Initialize()
Called by MARS when the SynthesizedObject is initialized
Declaration
public override void Initialize()
Overrides
OnEnable()
Called by Unity when the object is enabled
Declaration
protected override void OnEnable()