BlendMode Normal

robot_2Generated
code_blocksInput

Description

The Normal field is a member of the BlendMode enumeration within the Sandbox namespace. It represents the default blending mode used by the UI system, where the source color is drawn over the destination color without any additional blending effects.

Usage

Use the BlendMode.Normal when you want to render UI elements with standard, unaltered color blending. This is typically used when no special blending effects are desired, and the source color should simply replace the destination color.

Example

// Example of using BlendMode.Normal in a UI component
public class MyUIComponent : Component
{
    public void Render()
    {
        // Set the blend mode to Normal
        UI.SetBlendMode(BlendMode.Normal);
        
        // Render UI elements here
        // ...
    }
}