- 创建renderertexture赋值摄像机
- 用RawImage方式
- 用Graphics.DrawTexture
void OnGUI() { if (isshow) { if (Event.current.type.Equals(EventType.Repaint)) { Graphics.DrawTexture(new Rect(200, 100, 128, 128), tex); } } }
创建RendererTexture及显示方式
博客介绍了创建RendererTexture并赋值给摄像机的相关内容,还提及了两种显示方式,分别是用RawImage方式和Graphics.DrawTexture。
void OnGUI()
{
if (isshow)
{
if (Event.current.type.Equals(EventType.Repaint))
{
Graphics.DrawTexture(new Rect(200, 100, 128, 128), tex);
}
}
}
1898

被折叠的 条评论
为什么被折叠?