- 最后登录
- 2014-10-1
- 注册时间
- 2013-8-19
- 阅读权限
- 20
- 积分
- 260
- 纳金币
- 36
- 精华
- 0
|
错误为:
Shader wants tangents, but the mesh doesn't have them
UnityEditor.DockArea:OnGUI()
我的代码为
MarkPictureObject = new GameObject();
MarkPictureObject.name = "MarkPicture";
MarkPictureObject.transform.parent = ThisGameObject.transform;
MarkPictureObject.transform.localScale = new Vector3(x,y,z);
MarkPictureObject.transform.localPosition = new Vector3(X, Y ,Z);
UISprite uisprite = MarkPictureObject.AddComponent<UISprite>();
uisprite.atlas = MyAtlas;
uisprite.spriteName = "MySprite";
尝试方法:
mesh.RecalculateNormals();
另外:
虽然有这个错误提示,但实际项目能正常运行。
|
|