RenderTextureAssetclass

Asset that owns a GPU render target texture which can be shared across runtime systems.

objectGameResourceRenderTextureAsset
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.RenderTextureAsset : Sandbox.GameResource

Constructors1

Showing 1 constructors

Properties4

Showing 4 properties

public Color Sandbox.RenderTextureAsset.ClearColor { get; set; }PUBLICGETSET

Optional clear colour applied when the texture is (re)created.

Returns:Color

public Sandbox.ImageFormat Sandbox.RenderTextureAsset.Format { get; set; }PUBLICGETSET

Color format used when building the render target. Unsupported formats fall back to RGBA8888.

Returns:ImageFormat

On this page