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

