Files
UnrealEngineUWP/Engine/Source/Developer/MeshDescriptionOperations/Public/UVMapSettings.h
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

83 lines
1.9 KiB
C

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Math/Quat.h"
#include "UObject/ObjectMacros.h"
#include "UVMapSettings.generated.h"
/** UV map generation settings that are exposed to the user for scripting and through the editor */
USTRUCT(BlueprintType)
struct MESHDESCRIPTIONOPERATIONS_API FUVMapSettings
{
GENERATED_BODY()
/** Length, width, height of the UV mapping gizmo */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = UVMapSettings)
FVector Size;
/** Tiling of the UV mapping */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = UVMapSettings)
FVector2D UVTile;
/** Position of the UV mapping gizmo */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = GizmoTransform)
FVector Position;
/** Rotation of the UV mapping gizmo (angles in degrees) */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = GizmoTransform)
FRotator Rotation;
/** Scale of the UV mapping gizmo */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = GizmoTransform)
FVector Scale;
/** Default settings */
FUVMapSettings()
: Size(1.0f)
, UVTile(1.0f, 1.0f)
, Position(0.0f)
, Rotation(0)
, Scale(1.0f)
{
}
};
struct MESHDESCRIPTIONOPERATIONS_API FUVMapParameters
{
/** Length, width, height of the UV mapping gizmo */
FVector Size;
/** Tiling of the UV mapping */
FVector2D UVTile;
/** Position of the UV mapping gizmo */
FVector Position;
/** Rotation of the UV mapping gizmo (angles in degrees) */
FQuat Rotation;
/** Scale of the UV mapping gizmo */
FVector Scale;
/** Default settings */
FUVMapParameters()
: Size(1.0f)
, UVTile(1.0f, 1.0f)
, Position(0.0f)
, Rotation(ForceInit)
, Scale(1.0f)
{
}
FUVMapParameters(const FVector& InPosition, const FQuat& InRotation, const FVector& InSize, const FVector& InScale, const FVector2D& InUVTile)
: Size(InSize)
, UVTile(InUVTile)
, Position(InPosition)
, Rotation(InRotation)
, Scale(InScale)
{
}
};