UnityEngine.DynamicGI.UpdateMaterials C# (CSharp) Method

UpdateMaterials() public static method

Schedules an update of the albedo and emissive textures of a system that contains the renderer or the terrain.

public static UpdateMaterials ( Terrain terrain ) : void
terrain Terrain The Terrain to use when searching for systems to update.
return void
        public static void UpdateMaterials(Terrain terrain)
        {
            if (terrain == null)
            {
                throw new ArgumentNullException("terrain");
            }
            if (terrain.terrainData == null)
            {
                throw new ArgumentException("Invalid terrainData.");
            }
            UpdateMaterialsForTerrain(terrain, new Rect(0f, 0f, 1f, 1f));
        }

Same methods

DynamicGI::UpdateMaterials ( Renderer renderer ) : void
DynamicGI::UpdateMaterials ( Terrain terrain, int x, int y, int width, int height ) : void