TileGridObjectCollection.ConfigureGrid Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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