Version: 2023.1
LanguageEnglish
  • C#

GenericBindingUtility.BindProperties

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void BindProperties(GameObject rootGameObject, NativeArray<GenericBinding> genericBindings, out NativeArray<BoundProperty> floatProperties, out NativeArray<BoundProperty> discreteProperties, Unity.Collections.Allocator allocator);

Parameters

rootGameObject The root GameObject.
genericBindings The list of GenericBinding to bind. See GenericBindingUtility.GetAnimatableBindings, GenericBindingUtility.GetCurveBindings.
floatProperties Returns the list of float bound properties for all valid generic binding. If there is an invalid binding, this param returns BoundProperty.Null.
discreteProperties Returns the list of discrete bound properties for all valid generic bindings. If there is an invalid binding, this param returns BoundProperty.Null
allocator Allocator for allocating NativeArray memory.

Description

Retrieves the list of BoundProperty defined by the list of GenericBinding.

BoundProperty allocates resources that must be unallocated. See GenericBindingUtility.UnbindProperties.

This method throws an ArgumentException if the genericBindings NativeArray is not created.