ドキュメント

Unity Engine

Unity Engine

UpdateGIMaterials

Schedules an update of the albedo and emissive Textures of a system that contains the Terrain.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule

UpdateGIMaterials(Terrain)

Schedules an update of the albedo and emissive Textures of a system that contains the Terrain.
public static void UpdateGIMaterials(this Terrain terrain)

Parameters

terrain

Remarks

The second overload specifies a region of the Terrain that needs to be updated. This makes sure that only the systems that overlap with the specified rectangle get updated, which could help improve performance. The coordinates are specified the same way as in TerrainData.SetAlphamaps.

UpdateGIMaterials(Terrain, int, int, int, int)

Schedules an update of the albedo and emissive Textures of a system that contains the Terrain.
public static void UpdateGIMaterials(this Terrain terrain, int x, int y, int width, int height)

Parameters

terrain




width


height

Remarks

The second overload specifies a region of the Terrain that needs to be updated. This makes sure that only the systems that overlap with the specified rectangle get updated, which could help improve performance. The coordinates are specified the same way as in TerrainData.SetAlphamaps.