docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISynthesizedData

    Interface for SynthesizedTrait and SynthesizedTrackable Handles dynamic runtime behavior for SynthesizedObject If used with a SimulatedObject, does nothing.

    Namespace: Unity.MARS.Data.Synthetic
    Assembly: Unity.MARS.dll
    Syntax
    public interface ISynthesizedData

    Properties

    HasValidValue

    Only returns false if the data represented has a null/invalid state and is in that null/invalid state

    Declaration
    bool HasValidValue { get; }
    Property Value
    Type Description
    bool

    SynthesizedObject

    The SynthesizedObject reference, if one is attached to the same GameObject

    Declaration
    SynthesizedObject SynthesizedObject { get; }
    Property Value
    Type Description
    SynthesizedObject

    TraitName

    Identifies the data being applied to the Synthesized Object

    Declaration
    string TraitName { get; }
    Property Value
    Type Description
    string

    Methods

    TryAdd()

    Attempts to add the data to a SyntheticObject, if one is attached to the same GameObject.

    Declaration
    bool TryAdd()
    Returns
    Type Description
    bool

    True if adding the data successful, false on failure or redundant add.

    TryRemove()

    Attempts to add the data to a SyntheticObject, if one is attached to the same GameObject.

    Declaration
    bool TryRemove()
    Returns
    Type Description
    bool

    True if removing the data successful, false on error or redundant remove.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)