Table of Contents

Method GetRoot

Namespace
Pinwheel.Griffin
Assembly
Pinwheel.Polaris.Runtime.dll

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

terrain GStylizedTerrain

The terrain object.

prototype GameObject

The prefab.

Returns

GameObject

The root game object corresponding target prefab.