Skip to main content
added 14 characters in body
Source Link
[ContextMenu(nameof(Clear))]
private void Clear()
    {
        if (rt != null)
        {
            var cmd = new CommandBuffer();
            cmd.SetRenderTarget(rt);
            cmd.ClearRenderTarget(true, true, Color.clear);
            Graphics.ExecuteCommandBuffer(cmd);
            cmd.Dispose();
        }
    }
private void Clear()
    {
        if (rt != null)
        {
            var cmd = new CommandBuffer();
            cmd.SetRenderTarget(rt);
            cmd.ClearRenderTarget(true, true, Color.clear);
            Graphics.ExecuteCommandBuffer(cmd);
            cmd.Dispose();
        }
    }
[ContextMenu(nameof(Clear))]
private void Clear()
{
    if (rt != null)
    {
        var cmd = new CommandBuffer();
        cmd.SetRenderTarget(rt);
        cmd.ClearRenderTarget(true, true, Color.clear);
        Graphics.ExecuteCommandBuffer(cmd);
        cmd.Dispose();
    }
}
added 100 characters in body
Source Link
private void Clear()
    {
        if (rt != null)
        {
            var cmd = new CommandBuffer(); 
  
           cmd.SetRenderTarget(rt); 
  
           cmd.ClearRenderTarget(true, true, Color.clear);
            Graphics.ExecuteCommandBuffer(cmd);
            cmd.Dispose();
        }
    }
var cmd = new CommandBuffer();  
 cmd.SetRenderTarget(rt);  
 cmd.ClearRenderTarget(true, true, Color.clear);
Graphics.ExecuteCommandBuffer(cmd);
cmd.Dispose();
private void Clear()
    {
        if (rt != null)
        {
            var cmd = new CommandBuffer(); 
            cmd.SetRenderTarget(rt); 
            cmd.ClearRenderTarget(true, true, Color.clear);
            Graphics.ExecuteCommandBuffer(cmd);
            cmd.Dispose();
        }
    }
deleted 10 characters in body
Source Link
var cmd = new CommandBuffer();  
cmd.SetRenderTarget(rt);  
cmd.ClearRenderTarget(true, true, Color.clear); <br>
Graphics.ExecuteCommandBuffer(cmd); <br>
cmd.Dispose();
var cmd = new CommandBuffer();  
cmd.SetRenderTarget(rt);  
cmd.ClearRenderTarget(true, true, Color.clear); <br>
Graphics.ExecuteCommandBuffer(cmd); <br>
cmd.Dispose();
var cmd = new CommandBuffer();  
cmd.SetRenderTarget(rt);  
cmd.ClearRenderTarget(true, true, Color.clear);
Graphics.ExecuteCommandBuffer(cmd);
cmd.Dispose();
deleted 13 characters in body
Source Link
Loading
added 21 characters in body
Source Link
Loading
Source Link
Loading