ScriptRuntime.RenderToTexture.Setup C# (CSharp) Method

Setup() public method

创建一个用户自定义的渲染到纹理
public Setup ( int width, int height, PixelFormat format, ClearFlag flag, System.Vector4 &color, bool useDepth ) : void
width int 渲染到纹理的宽度
height int 渲染到纹理的高度
format PixelFormat 渲染到纹理的格式
flag ClearFlag 渲染到纹理的渲染标志
color System.Vector4 渲染到纹理的颜色
useDepth bool 渲染到纹理是否使用深度
return void
        public void Setup(int width, int height, PixelFormat format, ClearFlag flag, ref Vector4 color, bool useDepth)
        {
            ICall_RenderToTexture_Setup(this, width, height, (int)format, (uint)flag, ref color, useDepth, 0, 0, 0, 0, 0, 0);
        }

Same methods

RenderToTexture::Setup ( int width, int height, PixelFormat format, ClearFlag flag, System.Vector4 &color, bool useDepth, float screenRatio ) : void