Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UpdateGIMaterials

Schedules an update of the albedo and emissive Textures of a system that contains the Terrain.
Read time 1 minuteLast updated 11 days ago

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.