Method GetLayerWeights
GetLayerWeights(List<TerrainLayer>, List<RenderTexture>)
Copies the stored terrain layers and weight textures into caller-provided lists.
public void GetLayerWeights(List<TerrainLayer> layers, List<RenderTexture> weights)
Parameters
layersList<TerrainLayer>Destination list that receives terrain layers.
weightsList<RenderTexture>Destination list that receives weight textures.
Remarks
The destination lists are cleared before data is appended.
Indices in layers and weights are guaranteed to match.