Grid Raw Image
Renders a configurable grid of cells within a single RawImage.
Controls demonstrated:
Grid Raw Image
Overview
This scene demonstrates the Grid Raw Image control, a custom uGUI graphic that draws a grid of texture cells from a single texture, GameObject, and draw call. Use it for tile-based UI such as Tetris-style inventories or grid backgrounds where you want efficient rendering and per-cell geometry raycasting.
Controls Featured
- Grid Raw Image — the scene renders a configurable grid of textured cells using one Grid Raw Image component.
Scene Setup
- Add the UI Extensions Samples sample to your project (open the package in the Unity Package Manager and import UI Extensions Samples), or copy
Examples~/GridRawImage/into your project’sAssets/folder. - Open the
Demo GridImageexample scene in that folder. - Press Play.
What to Expect
The scene displays a Grid Raw Image laid out as a grid of cells drawn from a single texture. Properties such as the cell size, resize factor, extrude amount, and shape (which cells are active) control how the grid is built, letting you preview non-rectangular grids and skipped cells while still rendering in a single draw call.