CelticCraft/Plugins/VoxelFree/Source/Voxel/Public/VoxelTools/Tools/VoxelSphereToolBase.h

28 lines
912 B
C
Raw Normal View History

2023-07-03 16:17:13 +00:00
// 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
};