기술 자료

Unity Engine

Unity Engine

materialTemplate

The custom material Unity uses to render the Terrain.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public Material materialTemplate { get; set; }

Remarks

You can use this property to give the Terrain a custom material to render with.
Unity doesn't make a copy of the custom material internally, so modifying
materialTemplate
will affect all Terrain objects that use the same material.