没有对Texture2D初始化,直接调用,系统提示出问题
UnassignedReferenceException: The variable buttonTexture of 'Button' has not been assigned.You probably need to assign the buttonTexture variable of the Button script in the inspector.UnityEngine.Texture.get_width ()
请教大神,C#如何对Texture2D初始化?
在线等
unity3d Texture2D c#初始化
答案:2 悬赏:40 手机版
解决时间 2021-12-30 20:54
- 提问者网友:却不属于对方
- 2021-12-30 11:43
最佳答案
- 五星知识达人网友:酒安江南
- 2021-12-30 12:48
var texture = new Texture2D(128, 128, TextureFormat.ARGB32 , false);
全部回答
- 1楼网友:不想翻身的咸鱼
- 2021-12-30 14:04
没看懂什么意思?
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯