BindProperties
Retrieves the list of BoundProperty defined by the list of GenericBinding.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
BindProperties(GameObject, NativeArray<GenericBinding>, NativeArray<BoundProperty>, NativeArray<BoundProperty>, Allocator)
Retrieves the list of BoundProperty defined by the list of GenericBinding.
public static void BindProperties(GameObject rootGameObject, NativeArray<GenericBinding> genericBindings, out NativeArray<BoundProperty> floatProperties, out NativeArray<BoundProperty> discreteProperties, Allocator allocator)
Parameters
The root GameObject.
The list of GenericBinding to bind. See GenericBindingUtility.GetAnimatableBindings, GenericBindingUtility.GetCurveBindings.
Returns the list of float bound properties for all valid generic binding. If there is an invalid binding, this param returns BoundProperty.Null.
Returns the list of discrete bound properties for all valid generic bindings. If there is an invalid binding, this param returns BoundProperty.Null
Allocator for allocating NativeArray memory.
Remarks
BoundProperty allocates resources that must be unallocated. See GenericBindingUtility.UnbindProperties.
This method throws an ArgumentException if the genericBindings NativeArray is not created.
BindProperties(GameObject, NativeArray<GenericBinding>, NativeArray<BoundProperty>, NativeArray<BoundProperty>, NativeArray<BoundProperty>, Allocator)
Retrieves the list of BoundProperty defined by the list of GenericBinding.
public static void BindProperties(GameObject rootGameObject, NativeArray<GenericBinding> genericBindings, out NativeArray<BoundProperty> floatProperties, out NativeArray<BoundProperty> discreteProperties, out NativeArray<BoundProperty> instanceIDProperties, Allocator allocator)
Parameters
The root GameObject.
The list of GenericBinding to bind. See GenericBindingUtility.GetAnimatableBindings, GenericBindingUtility.GetCurveBindings.
Returns the list of float bound properties for all valid generic binding. If there is an invalid binding, this param returns BoundProperty.Null.
Returns the list of discrete bound properties for all valid generic bindings. If there is an invalid binding, this param returns BoundProperty.Null
Allocator for allocating NativeArray memory.
Remarks
BoundProperty allocates resources that must be unallocated. See GenericBindingUtility.UnbindProperties.
This method throws an ArgumentException if the genericBindings NativeArray is not created.