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.
Inherited Members
Namespace: UnityEngine .Recorder
Assembly: Unity.Recorder.dll
Syntax
[ExecuteInEditMode]
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 |
---|---|
bool | True if the key value exists, False otherwise. |
IsEmpty()
Tests if any bindings exist.
Declaration
public bool IsEmpty()
Returns
Type | Description |
---|---|
bool | 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)