Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BindProperties(GameObject, NativeArray<GenericBinding>, out NativeArray<BoundProperty>, out NativeArray<BoundProperty>, Allocator)

Retrieves the list of BoundProperty defined by the list of GenericBinding.
Read time 1 minuteLast updated 6 days ago

Definition

BindProperties(GameObject, NativeArray<GenericBinding>, NativeArray<BoundProperty>, NativeArray<BoundProperty>, Allocator)

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

Parameters

rootGameObject

The root GameObject.


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.

Remarks

BoundProperty allocates resources that must be unallocated. See GenericBindingUtility.UnbindProperties.
This method throws an ArgumentException if the genericBindings NativeArray is not created.