기술 자료

Unity Engine

Unity Engine

GetMaterials(List<Material>)

Returns all the instantiated materials of this object.
읽는 시간 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.