편집

다음을 통해 공유


TileGridObjectCollection.ConfigureGrid Method

Definition

Load the settings of the grid with code

public:
 virtual void ConfigureGrid(int columns, UnityEngine::Vector3 tileSize, UnityEngine::Vector3 gutters, UnityEngine::Vector3 layouDirection, UnityEngine::Vector3 startPosition, bool centered);
public virtual void ConfigureGrid (int columns, UnityEngine.Vector3 tileSize, UnityEngine.Vector3 gutters, UnityEngine.Vector3 layouDirection, UnityEngine.Vector3 startPosition, bool centered);
abstract member ConfigureGrid : int * UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 * bool -> unit
override this.ConfigureGrid : int * UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 * bool -> unit
Public Overridable Sub ConfigureGrid (columns As Integer, tileSize As Vector3, gutters As Vector3, layouDirection As Vector3, startPosition As Vector3, centered As Boolean)

Parameters

columns
Int32

the amount of columns

tileSize
UnityEngine.Vector3

grid tile size in pixels

gutters
UnityEngine.Vector3

gutter size in pixels

layouDirection
UnityEngine.Vector3

normalized vector flow direction

startPosition
UnityEngine.Vector3

start position offset

centered
Boolean

center the grid or layout from edge

Applies to