Deprecated APIs & Migration

advanced scripting

Terrain 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 memberReplacement
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
gridDepthOffsetgridMeshDepthOffset or gridSurfaceDepthOffset
Was this page helpful?