Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

Tilemap.TileArray Constructor

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 Tilemap.TileArray(int length, Allocator allocator);

Parameters

Parameter Description
length The number of elements to allocate.
allocator The Unity.Collections.Allocator to use for the data.

Description

Creates a new array and allocates enough memory to fit the provided number of elements.


Declaration

public Tilemap.TileArray(int length, MemoryLabel memoryLabel);

Parameters

Parameter Description
length The number of elements to allocate.
memoryLabel The Unity.Collections.MemoryLabel to allocate under.

Description

Creates a new array and allocates enough memory to fit the provided number of elements, using the specified memory label.