UCommonButtonStyle

- All properties must be EditDefaultsOnly, BlueprintReadOnly !!! -- we return the CDO to blueprints, so we cannot allow any changes (blueprint doesn't support const variables)

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

CommonUI

Header

/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/CommonButtonBase.h

Include

#include "CommonButtonBase.h"

Syntax

UCLASS(Abstract, Blueprintable, ClassGroup=UI, Meta=(Category="Common UI"))
class UCommonButtonStyle : public UObject

Remarks

  • All properties must be EditDefaultsOnly, BlueprintReadOnly !!! -- we return the CDO to blueprints, so we cannot allow any changes (blueprint doesn't support const variables)

Variables

Name Description

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

bool

 

bSingleMaterial

Whether or not the style uses a drop shadow

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

FMargin

 

ButtonPadding

The button content padding to apply for each size

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

FMargin

 

CustomPadding

The custom padding of the button to use for each size

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateBrush

 

Disabled

The disabled brush to apply to each size of this button

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FCommonButtonSt...

 

DisabledHoveredSlateSound

The sound to play when the button is hovered while disabled

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FCommonButtonSt...

 

DisabledPressedSlateSound

The sound to play when the button is pressed while disabled

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

TSubclassOf< UC...

 

DisabledTextStyle

The text style to use when disabled

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateSound

 

HoveredSlateSound

The sound to play when the button is hovered

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

int32

 

MinHeight

The minimum height of buttons using this style

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

int32

 

MinWidth

The minimum width of buttons using this style

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateBrush

 

NormalBase

The normal (un-selected) brush to apply to each size of this button

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateBrush

 

NormalHovered

The normal (un-selected) brush to apply to each size of this button when hovered

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

TSubclassOf< UC...

 

NormalHoveredTextStyle

The text style to use when un-selected

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateBrush

 

NormalPressed

The normal (un-selected) brush to apply to each size of this button when pressed

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

TSubclassOf< UC...

 

NormalTextStyle

The text style to use when un-selected

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateSound

 

PressedSlateSound

The sound to play when the button is pressed

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateBrush

 

SelectedBase

The selected brush to apply to each size of this button

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateBrush

 

SelectedHovered

The selected brush to apply to each size of this button when hovered

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FCommonButtonSt...

 

SelectedHoveredSlateSound

The sound to play when the button is hovered while selected

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

TSubclassOf< UC...

 

SelectedHoveredTextStyle

The text style to use when un-selected

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateBrush

 

SelectedPressed

The selected brush to apply to each size of this button when pressed

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FCommonButtonSt...

 

SelectedPressedSlateSound

The sound to play when the button is pressed while selected

Public variable UProperty Category, EditDefaultsOnly BlueprintReadOnly

TSubclassOf< UC...

 

SelectedTextStyle

The text style to use when selected

Public variable UProperty Category, EditDefaultsOnly, Meta BlueprintReadOnly

FSlateBrush

 

SingleMaterialBrush

The normal (un-selected) brush to apply to each size of this button

Functions