GetSelectionColor

Given a base color and a selection state, returns a color which accounts for the selection state.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SceneManagement.h

Include

#include "SceneManagement.h"

Source

/Engine/Source/Runtime/Engine/Private/PrimitiveDrawingUtils.cpp

Syntax

FLinearColor GetSelectionColor
(
    const FLinearColor & BaseColor,
    bool bSelected,
    bool bHovered,
    bool bUseOverlayIntensity
)

Remarks

Given a base color and a selection state, returns a color which accounts for the selection state.

Returns

The color to draw the object with, accounting for the selection state

Parameters

Parameter

Description

BaseColor

The base color of the object.

bSelected

The selection state of the object.

bHovered

True if the object has hover focus

bUseOverlayIntensity

True if the selection color should be modified by the selection intensity

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss