Custom graphic for uGUI. Single-object/texture Grid image, excellent for tile-based (tetris-like) inventory
1 Overview
3 Methods
4 Usage
6 See also
Custom graphic for uGUI. Single-object/texture Grid image, excellent for tile-based (tetris-like) inventory.
- 1 texture / 1 GameObject / 1 drawcall
- skip cells
- valid raycasting by geometry for input
- resize rectTransform to fit
- extrude edges (inner outer)
- Non-rectangle cells
- script-based, no custom shader
The properties of the Grid Raw Image control are as follows:
| Property | Description |
|---|---|
| Texture | Texture to use for each cell. |
| Resize | Factor by how each cell is resized. |
| Cell Size | The dimensions per cell. |
| Extrude | Extrusion surrounding the cell. |
| Shape | The grid size, including configuration for which cells are active. |
- Material
- Color
- Raycast Target
- Maskable
This component does not expose public methods beyond inherited behaviour.
...
Dmitry (mitay-walle)







