GetMaterials(List<Material>)
Returns all the instantiated materials of this object.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void GetMaterials(List<Material> m)
Parameters
A list of materials to populate.
Remarks
Use this method instead of Renderer.materials if you control the life cycle of the list passed in and you want to avoid allocating a new array with every access.