Files
UnrealEngineUWP/Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectAnnotation.h
mikko mononen c06beb8571 SmartObject improvements
- Fixed hashing when adding shared fragment for smart object slot definition
- Added per slot Runtime Tags
- Added common event handling for Smart Object and Slot changes and events
- Added annotations, which are slot definition data that has visualization
- Added linked slot annotation which allows behavior reuse on slots
- Added editor only ID for each slot so that they can be identified during edits
- Added SmartObject slot reference type that can be used to reference other slots in the Smart Object
- Changed Smart Object bDisable to bEnabled
- Added separate enabled state for slots
- Changed Smart Object disable to send an event, not forcefully unclaim
- Added more visualization support for Smart Object editor (canvas, visualize annotations)
- Changed Smart Object editor to use the commonly transform for slots
- Remove Smart Object Component instance from the asset editor as it was not needed

#rb Stephen.Holmes
#preflight 6360f0cf63608aee36e01ba5

[CL 22888712 by mikko mononen in ue5-main branch]
2022-11-01 15:11:25 -04:00

27 lines
974 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SmartObjectTypes.h"
#include "SmartObjectAnnotation.generated.h"
struct FSmartObjectVisualizationContext;
/**
* Base class for Smart Object Slot annotations. Annotation is a specific type of slot definition data that has methods to visualize it.
*/
USTRUCT(meta=(Hidden))
struct SMARTOBJECTSMODULE_API FSmartObjectSlotAnnotation : public FSmartObjectSlotDefinitionData
{
GENERATED_BODY()
virtual ~FSmartObjectSlotAnnotation() override {}
#if UE_ENABLE_DEBUG_DRAWING
// @todo: Try to find a way to add visualization without requiring virtual functions.
/** Methods to override to draw 3D visualization of the annotation. */
virtual void DrawVisualization(FSmartObjectVisualizationContext& VisContext) const {}
/** Methods to override to draw canvas visualization of the annotation. */
virtual void DrawVisualizationHUD(FSmartObjectVisualizationContext& VisContext) const {}
#endif
};