Google.Maps.Terrain.TerrainStyle

Encapsulates immutable styling information used to control the appearance of generated Terrain.

Summary

Inheritance

Inherits from: Google.Maps.GameObjectStyle

Public static attributes

DefaultStyle = new Builder().Build()
readonly TerrainStyle
Default style.

Properties

AlphaMapResolutionMetersPerPixel
float
The target resolution of the alpha map in meters per pixel, used to draw TerrainLayer masks.
BaseMapDistance
float
The maximum distance at which terrain textures will be displayed at full resolution. Beyond this distance, a lower resolution composite map will be used for efficiency.
BaseMapResolutionMetersPerPixel
float
The target resolution in meters per pixel of the composite texture used on the terrain when viewed from a distance greater than the Basemap distance.
TerrainLayers
TerrainLayer[]
The TerrainLayers applied to each Terrain tile during styling.
TerrainPaintingLayer
int
The rendering layer used to capture Feature Groups for TerrainPainting. Defaults to layer 10.

Public functions

AsBuilder()
Returns a new Builder based on this style object.

Classes

Google.Maps.Terrain.TerrainStyle.Builder

The TerrainStyle builder.

Public static attributes

DefaultStyle

readonly TerrainStyle DefaultStyle = new Builder().Build()

Default style.

Properties

AlphaMapResolutionMetersPerPixel

float AlphaMapResolutionMetersPerPixel

The target resolution of the alpha map in meters per pixel, used to draw TerrainLayer masks.

The actual resolution of the alpha maps may differ from the provided value. Unity UnityEngine.Terrain tiles must have square alpha maps with a power of two resolution. The MapsUnity SDK will round the provided value to the nearest power of two to meet this requirement.

When used with Mixed Zoom, this value is automatically doubled for each increment the zoom level is lowered.

BaseMapDistance

float BaseMapDistance

The maximum distance at which terrain textures will be displayed at full resolution. Beyond this distance, a lower resolution composite map will be used for efficiency.

BaseMapResolutionMetersPerPixel

float BaseMapResolutionMetersPerPixel

The target resolution in meters per pixel of the composite texture used on the terrain when viewed from a distance greater than the Basemap distance.

The actual resolution of the base map may differ from the provided value. Unity UnityEngine.Terrain tiles must have square base maps with a power of two resolution. The MapsUnity SDK will round the provided value to the nearest power of two to meet this requirement.

When used with Mixed Zoom, this value is automatically doubled for each increment the zoom level is lowered.

TerrainLayers

TerrainLayer[] TerrainLayers

The TerrainLayers applied to each Terrain tile during styling.

TerrainPaintingLayer

int TerrainPaintingLayer

The rendering layer used to capture Feature Groups for TerrainPainting. Defaults to layer 10.

To prevent feature group rendering from being visible in-game, please exclude this layer from the culling masks of any other cameras in the scene.

Public functions

AsBuilder

Builder AsBuilder()

Returns a new Builder based on this style object.