Version: 2023.2
言語: 日本語
public static void BindProperties (GameObject rootGameObject, NativeArray<GenericBinding> genericBindings, out NativeArray<BoundProperty> floatProperties, out NativeArray<BoundProperty> discreteProperties, Unity.Collections.Allocator allocator);

パラメーター

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.

説明

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.