Method GetPrototypeRootName
GetPrototypeRootName(GameObject)
Get the root game object name for spawning a prefab into, use this to keep the hierarchy clean.
public static string GetPrototypeRootName(GameObject prototype)
Parameters
prototypeGameObjectThe prefab.
Returns
- string
Root game object name.