Method GetRoot
GetRoot(GStylizedTerrain, GameObject)
Get the root game object to spawn a prefab into. This will return a child game object of the terrain, all instances of the same prefab will be placed under this object.
public static GameObject GetRoot(GStylizedTerrain terrain, GameObject prototype)
Parameters
terrainGStylizedTerrainThe terrain object.
prototypeGameObjectThe prefab.
Returns
- GameObject
The root game object corresponding target prefab.