28 lines
912 B
C
28 lines
912 B
C
|
// Copyright 2020 Phyronnaz
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "CoreMinimal.h"
|
||
|
#include "VoxelTools/Tools/VoxelToolWithAlignment.h"
|
||
|
#include "VoxelSphereToolBase.generated.h"
|
||
|
|
||
|
UCLASS(Abstract)
|
||
|
class VOXEL_API UVoxelSphereToolBase : public UVoxelToolWithAlignment
|
||
|
{
|
||
|
GENERATED_BODY()
|
||
|
|
||
|
public:
|
||
|
UPROPERTY(Category = "Tool Preview Settings", EditAnywhere, BlueprintReadWrite, meta = (HideInPanel))
|
||
|
TObjectPtr<UMaterialInterface> ToolMaterial = nullptr;
|
||
|
|
||
|
UPROPERTY(Category = "Tool Preview Settings", EditAnywhere, BlueprintReadWrite, meta = (HideInPanel))
|
||
|
TObjectPtr<UStaticMesh> SphereMesh = nullptr;
|
||
|
|
||
|
public:
|
||
|
UVoxelSphereToolBase();
|
||
|
|
||
|
//~ Begin UVoxelToolBase Interface
|
||
|
virtual void GetToolConfig(FVoxelToolBaseConfig& OutConfig) const override;
|
||
|
virtual void UpdateRender(UMaterialInstanceDynamic* OverlayMaterialInstance, UMaterialInstanceDynamic* MeshMaterialInstance) override;
|
||
|
//~ End UVoxelToolBase Interface
|
||
|
};
|