The Name
property of the RenderTargetHandle
struct in the Sandbox.Rendering
namespace provides a string identifier for the render target. This property is useful for referencing and managing render targets within the rendering pipeline.
The Name
property of the RenderTargetHandle
struct in the Sandbox.Rendering
namespace provides a string identifier for the render target. This property is useful for referencing and managing render targets within the rendering pipeline.
Use the Name
property to get or set the identifier of a render target. This can be particularly useful when you need to distinguish between multiple render targets or when debugging rendering issues.
// Example of using the Name property RenderTargetHandle renderTarget = new RenderTargetHandle(); // Set the name of the render target renderTarget.Name = "MainRenderTarget"; // Retrieve the name of the render target string targetName = renderTarget.Name; // Output the name // Note: Avoid using Console.WriteLine in Sandbox // Instead, use logging or debugging tools available in the environment Log.Info($"Render Target Name: {targetName}");