docs.unity3d.com
    目次を表示する/隠す

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)