Class RTHandle
Utility class for safely managing the lifetime of a RenderTexture
Syntax
Properties
Desc
The descriptor for the RTHandle and RenderTexture
Declaration
public RenderTextureDescriptor Desc { get; }
Property Value
Name
The name for the RTHandle and RenderTexture
Declaration
public string Name { get; set; }
Property Value
RT
The RenderTexture for this RTHandle
Declaration
public RenderTexture RT { get; }
Property Value
Methods
Scoped()
Get a new disposable RTHandleScope instance to use in using blocks
Declaration
public RTHandle.RTHandleScope Scoped()
Returns
WithName(String)
Sets the name of the RenderTexture and returns the reference to the RTHandle
Declaration
public RTHandle WithName(string name)
Parameters
Type |
Name |
Description |
String |
name |
The name of the underlying RenderTexture
|
Returns
Type |
Description |
RTHandle |
Reference to the RTHandle
|
Operators
Implicit(RTHandle to RenderTexture)
Declaration
public static implicit operator RenderTexture(RTHandle handle)
Parameters
Returns
Implicit(RTHandle to Texture)
Declaration
public static implicit operator Texture(RTHandle handle)
Parameters
Returns