Skip to main content

Renderer.GetMaterials()

Returns all the instantiated materials of this object.

Returns:

typeDescription
Materialall 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.