docs.unity3d.com
    Show / Hide Table of Contents

    Class SynthesizedTrackable<T>

    Representation for a single typed property in a piece of Synthesized MARS data

    Inheritance
    Object
    SynthesizedTrackable
    SynthesizedTrackable<T>
    SynthesizedBody
    SynthesizedMarker
    SynthesizedPlane
    SynthesizedReferencePoint
    Inherited Members
    SynthesizedTrackable.TraitName
    SynthesizedTrackable.SynthesizedObject
    SynthesizedTrackable.HasValidValue
    SynthesizedTrackable.Awake()
    SynthesizedTrackable.OnEnable()
    SynthesizedTrackable.OnDisable()
    SynthesizedTrackable.Initialize()
    SynthesizedTrackable.Terminate()
    SynthesizedTrackable.TryAdd()
    SynthesizedTrackable.TryRemove()
    Namespace: Unity.MARS.Data.Synthetic
    Syntax
    public abstract class SynthesizedTrackable<T> : SynthesizedTrackable, ISimulatable, ISynthesizedData, IProvidesTraits<bool>, IProvidesTraits, IUsesMARSTrackableData<T> where T : IMRTrackable
    Type Parameters
    Name Description
    T

    The type of data being represented by this trait

    Methods

    AddSynthData(Int32)

    Add the data for this SynthesizedTrackable to the MARS database

    Declaration
    public override sealed void AddSynthData(int dataID)
    Parameters
    Type Name Description
    Int32 dataID

    The data ID associated with this trackable object

    Overrides
    SynthesizedTrackable.AddSynthData(Int32)

    GetData()

    Calculates and retrieves the most up-to-date piece of data representing this trackable object

    Declaration
    public abstract T GetData()
    Returns
    Type Description
    T

    The data representing this trackable object

    GetProvidedTraits()

    Get the traits provided by this SynthesizedTrackable

    Declaration
    public virtual TraitDefinition[] GetProvidedTraits()
    Returns
    Type Description
    TraitDefinition[]

    The provided traits

    Implements
    IProvidesTraits.GetProvidedTraits()

    RemoveSynthData(Int32)

    Remove the data for this SynthesizedTrackable from the MARS database

    Declaration
    public override sealed void RemoveSynthData(int dataID)
    Parameters
    Type Name Description
    Int32 dataID

    The data ID associated with this trackable object

    Overrides
    SynthesizedTrackable.RemoveSynthData(Int32)

    UpdateSynthData()

    Update the data in the MARS database associated with this trackable object

    Declaration
    public override sealed void UpdateSynthData()
    Overrides
    SynthesizedTrackable.UpdateSynthData()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023