unity3d create empty gameobject c# code example Example: unity create empty gameobject in code objToSpawn = new GameObject("Cool GameObject made from Code");