GameObject (Prefab object ) created by script does not appear in Game View but appears in Scene View in Unity3d
问题 I created a pin object by script attached it to a sphere object . using UnityEngine; public class InstantiateMarkerPin : MonoBehaviour { public float Xpos; public float Ypos; public float Zpos; public GameObject gameObjectPinInstantiate; // Start is called before the first frame update private void Start() { Xpos = 0.09f; Ypos = 0.50f; Zpos = 1.1f; //The original object, where to instantiate, and the orientation of the new object GameObject marker = (GameObject)Resources.Load("gameObjectPin")