一天一个小Bug supportstextureformatnative is not allowed to be called from a monobehaviour constructor

it2024-10-19  38

supportstextureformatnative is not allowed to be called from a monobehaviour constructor

我调用我的 TextureKit 的LoadTexture2DToList方法时候放在unity 生命周期函数可以例如Start()或者是Awake()运行正常,如果是自己搞的其他东西里例如 OnOpen()调用LoadTexture2DToList方法便会报上述错误

如图所示:

最新回复(0)