Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TransformAccessArray

TransformAccessArray.
Read time 1 minuteLast updated 3 days ago

Definition

public struct TransformAccessArray : IDisposable

Constructors

Constructor

Description

TransformAccessArray(System.Int32,System.Int32)Construct a TransformAccessArray with enough memory allocated to hold the specified number of transforms, and with initial length of 0.
TransformAccessArray(Unity.Collections.NativeArray{UnityEngine.TransformHandle},System.Int32)Construct a TransformAccessArray from a NativeArray of Transformhandles.
TransformAccessArray(UnityEngine.Transform[],System.Int32)Construct a TransformAccessArray from a managed array of Transform components.

Properties

Property

Description

capacityReturns array capacity.
isCreatedisCreated.
this[]Array indexer.
lengthLength.

Methods

Method

Description

AddAdd Transform by instance ID to the end of the TransformAccessArray.
DisposeDispose.
GetTransformHandleGet a TransformHandle for the transform at the specified index in the TransformAccessArray.
RemoveAtSwapBackRemoves an item at index.
SetTransformHandleSet transform at the specified index from the TransformHandle provided.
SetTransformHandlesReplace entire contents of TransformAccessArray with provided transforms.
SetTransformsReplace entire contents of TransformAccessArray with provided transforms.

Static Methods

Method

Description

AllocateAllocate.