GetMaterials
7/14/25Less than 1 minute
Renderer.GetMaterials()
Returns all the instantiated materials of this object.
Returns:
| type | Description |
|---|---|
| Material | all the instantiated materials of this object. |
Usage
---@type Renderer
local renderer;
local val0 = renderer.GetMaterials()Extra Detail
Use this method instead of materials if you control the life cycle of the list passed in and you want to avoid allocating a new array with every access.

