NOTICE: Google Maps Platform gaming services is deprecated as of October 18, 2021. Current users will have continued access until December 31, 2022. During this time, we will continue to provide support and fixes to major bugs and outages. See the Gaming Services Transition Guide for resources to help you plan the next steps for your projects.

Google.Maps.TerrainOptions

Encapsulates terrain parameters.

Summary

Public attributes

AltitudePrecision = 0.01f
float
The vertical precision of terrain altitudes in meters. Possible values: between 0.01 (cm level precision) and 10000 (10-kilometer level precision).
TerrainMeshMetersPerPoint = 1
float
Specifies the target resolution of each generated UnityTerrain tiles in meters per point.

Public attributes

AltitudePrecision

float AltitudePrecision = 0.01f

The vertical precision of terrain altitudes in meters. Possible values: between 0.01 (cm level precision) and 10000 (10-kilometer level precision).

TerrainMeshMetersPerPoint

float TerrainMeshMetersPerPoint = 1

Specifies the target resolution of each generated UnityTerrain tiles in meters per point.

The actual resolution of each terrain tile may differ from the provided value. Unity UnityEngine.Terrain tiles have square height maps with their resolution as a power of 2 + 1. The MapsUnity SDK rounds the provided value to the nearest power of 2 + 1 to meet this requirement.

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