LineRenderer.GetMaterials()
Returns all the instantiated materials of this object.
Returns:
type | Description |
---|---|
Material | all the instantiated materials of this object. |
Usage
---@type LineRenderer
local linerenderer;
local val0 = linerenderer.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.