What is the output of the following code assuming that myGameObject does not exist in the scene?
using UnityEngine;
using System.Collections; public class Example : MonoBehaviour { void Start () { GameObject go = GameObject.Find("myGameObject"); Debug.Log(go.name); } }
Correct Answer:
NullReferenceException
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Unity3D MCQ Questions