UpdateMaterials
Schedules an update of the albedo and emissive textures of a system that contains the renderer or the terrain.
Read time 2 minutesLast updated 2 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
UpdateMaterials(Renderer)
Schedules an update of the albedo and emissive textures of a system that contains the renderer or the terrain.
public static void UpdateMaterials(Renderer renderer)
Parameters
Remarks
The third 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.
UpdateMaterials(Object)
Schedules an update of the albedo and emissive textures of a system that contains the renderer or the terrain.
public static void UpdateMaterials(Object renderer)
Parameters
Remarks
The third 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.
UpdateMaterials(Object, int, int, int, int)
Schedules an update of the albedo and emissive textures of a system that contains the renderer or the terrain.
public static void UpdateMaterials(Object renderer, int x, int y, int width, int height)
Parameters
Remarks
The third 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.