Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Is Render Target

Introduction

Is Render Target controls whether all instances contained in this container render directly to the screen (if false), or if they first render to their own dedicated target before rendering to the screen (if true).

Is Render Target defaults to false (unchecked).

Is Render Target enables a number of graphical effects including:

  • Container Alpha (transparency)

  • Container Blend

  • Alpha-only Blend modes on instances contained in the Container

Is Render Target Clips Children

Containers with Is Render Target set to true automatically clip their children. This behavior is the same as setting Clips Children to true. This happens because render targets internally create a texture which matches their size. Therefore, any items which are placed outside of the bounds of a render target container are not rendered.

Is Render Target set to true clips children

Using Is Render Target for Special Effects

Once a container is rendered to a render target, additional special effects can be applied at runtime. These include:

  • Scaling

  • Rotating

  • Rendering portions using texture coordinates

For a step-by-step tool walkthrough of rotating and scaling a clipped container, see Rotating and Scaling Clipped Contents. For the same pattern in code, see the SpriteRuntime RenderTargetTextureSource documentation.

If you are managing a render target yourself in code instead of using Is Render Target, see Render Targets for the blend-mode setup needed to composite translucent content correctly on MonoGame and raylib.

Source Shader File

A container with Is Render Target can set Source Shader File to apply a shader to everything inside it. The tool picks and previews .fx, .slang and .sksl files.

Picking and previewing .sksl files is available in December 2026, or now if building Gum from source.

Shader Parameters

Available in December 2026, or now if building Gum from source.

When a container with Is Render Target has a Source Shader File, the Variables tab lists the parameters that shader declares, one row each, under Rendering. A parameter you have not changed shows the default the shader declares and saves nothing.

A parameter with two to four decimal values (such as an offset, a size or a tint) is one row with a field for each value, labeled X, Y, Z and W. When the panel is too narrow for every field on one line, the fields continue on the next line. Typing in any field saves every value of that parameter in the selected state, and undo reverts them together. The set marker at the left of the row shows once for the whole parameter.

Right-click the row and choose Make Default to clear all of the parameter's values at once, so it goes back to the shader's default.

Choose Expose Variable to expose the whole parameter under one name. Gum asks for the name once, and the generated code gets one property for the parameter (a Vector2, Vector3 or Vector4 that you can only set). Choose Un-expose to remove it.

Last updated

Was this helpful?