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