how to instantiate an empty in unity code example
Example 1: unity instantiate empty gameobject
GameObject newObj = new GameObject("Name");
Instantiate(newObj, Vector3.zero, Quaternion.identity);
Example 2: unity create empty gameobject in code
objToSpawn = new GameObject("Cool GameObject made from Code");