handling-colors

Distinguish SlateColor and LinearColor usage in ReactUMG UI components.

1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/15195999826/LomoMarketplace --skill handling-colors
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: handling-colors
Source: https://github.com/15195999826/LomoMarketplace/tree/main/plugins/UE_ReactUMG/skills/handling-colors/SKILL.md
Command: npx skills add https://github.com/15195999826/LomoMarketplace --skill handling-colors

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Distinguishes SlateColor vs LinearColor and enforces ColorUseRule in WidgetStyle to ensure colors render correctly.

Core Features & Use Cases

  • SlateColor vs LinearColor: when to use each in ColorAndOpacity vs BrushColor.
  • ColorUseRule 0: mandatory for WidgetStyle colors to render.
  • Practical guidance: examples for common components like TextBlock, Border, Image.

Quick Start

Use SlateColor for TextBlock ColorAndOpacity and LinearColor for BrushColor; ensure ColorUseRule: 0 in WidgetStyle.

Frequently Asked Questions about handling-colors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What's the difference between SlateColor and LinearColor in ReactUMG?

SlateColor and LinearColor serve different purposes in ReactUMG. SlateColor is used for UI text and foreground colors in components like TextBlock, while LinearColor handles brush and background colors in Border and Image. Choosing the correct type ensures colors render properly and maintains semantic accuracy in your UI.

How do I apply colors correctly to TextBlock and Border in Unreal Engine UMG?

Use SlateColor for TextBlock's ColorAndOpacity property and LinearColor for Border's BrushColor property. Each component type requires its corresponding color type to render correctly. Refer to the component-specific property mappings to ensure proper color application across your UI widgets.

Why is ColorUseRule required for WidgetStyle colors?

ColorUseRule: 0 is mandatory for WidgetStyle to enforce correct color rendering semantics in Unreal Engine. Without this setting, colors may fail to apply or display incorrectly. The rule ensures your color configuration matches UMG's internal validation requirements.

Can I use LinearColor for all color properties in ReactUMG components?

No. Different component properties require specific color types. TextBlock's ColorAndOpacity needs SlateColor, while BrushColor properties need LinearColor. Mixing types causes rendering failures. Check your component's property-to-type mapping to select the correct color type.

What properties support each color type in UMG widgets?

SlateColor applies to ColorAndOpacity and ForegroundColor properties in text-based components. LinearColor applies to BrushColor and related background properties in visual components like Border and Image. Each component documents its supported color properties for correct configuration.

How do I know which color type my UMG component requires?

Check the component documentation for its specific property-to-type mappings. TextBlock, Button, and similar text components typically use SlateColor for foreground colors, while Border and Image use LinearColor for brush and background colors. The core validation cues guide correct type selection.