我正在創建所有新的統一項目,并將空游戲對象添加到我的第一個場景中,還創建腳本并將其添加到該對象中,但是當我嘗試運行場景腳本時,控制臺窗口中沒有顯示任何輸出。這是我的代碼using System.Collections;using UnityEngine;public class ScriptObject : MonoBehaviour{ // Start is called before the first frame update void Start() { Debug.Log("Start method called."); } // Update is called once per frame void Update() { Debug.Log("Update method calling."); }}
添加回答
舉報
0/150
提交
取消