浏览代码

Merge pull request #19 from UnityTech/text

fix
/main
GitHub 6 年前
当前提交
54556604
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Assets/UIWidgets/ui/painting/canvas_impl.cs

3
Assets/UIWidgets/ui/painting/canvas_impl.cs


if (Camera.current != null) // draw mesh will use camera matrix, set to identity before draw mesh
{
cameraMat = Camera.current.worldToCameraMatrix;
Camera.current.worldToCameraMatrix = Matrix4x4.identity;;
Camera.current.worldToCameraMatrix = Matrix4x4.identity;
}
Graphics.DrawMeshNow(mesh, Matrix4x4.identity);

Camera.current.ResetWorldToCameraMatrix();
}
}

正在加载...
取消
保存