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

    Class RecorderBindings

    Helper component mainly used to save Recorder's GameObject references. Some recorders (such as the Animation Recorder) require a GameObject reference from a Scene to record from. In such a case, this component is automatically added to the Scene and binds the selected GameObject to the Recorder Settings.

    Inheritance
    Object
    RecorderBindings
    Namespace: UnityEngine.Recorder
    Syntax
    public class RecorderBindings : MonoBehaviour

    Methods

    DuplicateBinding(String, String)

    Duplicates the binding from an existing key to a new one (makes dst point to the same object as src).

    Declaration
    public void DuplicateBinding(string src, string dst)
    Parameters
    Type Name Description
    String src

    The key to duplicate the binding from.

    String dst

    The new key that points to the same object.

    GetBindingValue(String)

    Retrieves a binding for an unique ID.

    Declaration
    public Object GetBindingValue(string id)
    Parameters
    Type Name Description
    String id

    The binding key.

    Returns
    Type Description
    Object

    The value corresponding to the key – or null if the key doesn't exist.

    HasBindingValue(String)

    Tests if a value exists for a given key.

    Declaration
    public bool HasBindingValue(string id)
    Parameters
    Type Name Description
    String id

    The key to test.

    Returns
    Type Description
    Boolean

    True if the key value exists, False otherwise.

    IsEmpty()

    Tests if any bindings exist.

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    Boolean

    True if there are any existing bindings, False otherwise.

    RemoveBinding(String)

    Removes the binding for a key.

    Declaration
    public void RemoveBinding(string id)
    Parameters
    Type Name Description
    String id

    The unique key of the binding to remove.

    SetBindingValue(String, Object)

    Binds a particular ID to an Object value.

    Declaration
    public void SetBindingValue(string id, Object value)
    Parameters
    Type Name Description
    String id

    The unique ID key.

    Object value

    The value for the key.

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