Deprecated APIs & Migration
advanced scriptingTerrain Grid System 2 · Scripting Support (C#)
Deprecated APIs & Migration
The members below are marked as obsolete. They still work, but Unity shows a warning when your code uses them. Use the replacement instead. All other public members of Terrain Grid System 2 are current and are described in the other API pages.
| Obsolete member | Replacement |
|---|---|
CellGetAtPosition(Vector3 position, bool worldSpace = false, int territoryIndex = -1) | CellGetAtWorldPosition or CellGetAtLocalPosition |
CellGetConfigurationData() | CellGetSettings |
CellSetConfigurationData(string cellData, int[] filterTerritories) | CellSetSettings |
TerritoryGetAtPosition(Vector2 localPosition) | TerritoryGetAtWorldPosition or TerritoryGetAtLocalPosition |
TerritoryGetAtPosition(Vector3 position, bool worldSpace) | TerritoryGetAtWorldPosition or TerritoryGetAtLocalPosition |
gridDepthOffset | gridMeshDepthOffset or gridSurfaceDepthOffset |
Was this page helpful?
Suggest an improvement
Help us improve this documentation page.