- 创建renderertexture赋值摄像机
- 用RawImage方式
- 用Graphics.DrawTexture
void OnGUI() { if (isshow) { if (Event.current.type.Equals(EventType.Repaint)) { Graphics.DrawTexture(new Rect(200, 100, 128, 128), tex); } } }
void OnGUI()
{
if (isshow)
{
if (Event.current.type.Equals(EventType.Repaint))
{
Graphics.DrawTexture(new Rect(200, 100, 128, 128), tex);
}
}
}
本文标题:RenderTexture
本文链接:https://www.haomeiwen.com/subject/sxproqtx.html
网友评论