Files
UnrealEngineUWP/Engine/Source/Editor/TextureEditor/Classes/TextureEditorSettings.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

79 lines
2.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "TextureEditorSettings.generated.h"
/**
* Enumerates background for the texture editor view port.
*/
UENUM()
enum ETextureEditorBackgrounds
{
TextureEditorBackground_SolidColor UMETA(DisplayName="Solid Color"),
TextureEditorBackground_Checkered UMETA(DisplayName="Checkered"),
TextureEditorBackground_CheckeredFill UMETA(DisplayName="Checkered (Fill)")
};
UENUM()
enum ETextureEditorVolumeViewMode
{
TextureEditorVolumeViewMode_DepthSlices UMETA(DisplayName="Depth Slices"),
TextureEditorVolumeViewMode_VolumeTrace UMETA(DisplayName="Trace Into Volume"),
};
/**
* Implements the Editor's user settings.
*/
UCLASS(config=EditorPerProjectUserSettings)
class TEXTUREEDITOR_API UTextureEditorSettings
: public UObject
{
GENERATED_UCLASS_BODY()
public:
/** The type of background to draw in the texture editor view port. */
UPROPERTY(config)
TEnumAsByte<ETextureEditorBackgrounds> Background;
/** The type of display when viewing volume textures. */
UPROPERTY(config)
TEnumAsByte<ETextureEditorVolumeViewMode> VolumeViewMode;
/** Background and foreground color used by Texture preview view ports. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor BackgroundColor;
/** The first color of the checkered background. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor CheckerColorOne;
/** The second color of the checkered background. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor CheckerColorTwo;
/** The size of the checkered background tiles. */
UPROPERTY(config, EditAnywhere, Category=Background, meta=(ClampMin="2", ClampMax="4096"))
int32 CheckerSize;
public:
/** Whether the texture should scale to fit the view port. */
UPROPERTY(config)
bool FitToViewport;
/** Color to use for the texture border, if enabled. */
UPROPERTY(config, EditAnywhere, Category=TextureBorder)
FColor TextureBorderColor;
/** If true, displays a border around the texture. */
UPROPERTY(config)
bool TextureBorderEnabled;
};