The reason I got an error was because I was instancing TempObject from a MonoBehaviour class:using UnityEngine;public class Example : MonoBehaviour { public BuildableObject Selected = new TempObject(); // real error} 这篇关于“不允许从 MonoBehaviour 构造函数调用 Load";在不继承 MonoBehaviour 的脚本上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-04 19:08