docs.unity3d.com
    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
    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
    Boolean

    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
    Boolean

    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
    Boolean

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

    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