- 创建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);
}
}
}