UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SceneComponentToolTarget.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
9
10#include "SceneComponentToolTarget.generated.h"
11
16UCLASS(Transient, MinimalAPI)
18{
20public:
21
22 // UToolTarget
23 INTERACTIVETOOLSFRAMEWORK_API virtual bool IsValid() const override;
24
25 // ISceneComponentBackedTarget implementation
26 INTERACTIVETOOLSFRAMEWORK_API virtual USceneComponent* GetOwnerSceneComponent() const;
27 INTERACTIVETOOLSFRAMEWORK_API virtual AActor* GetOwnerActor() const;
28 INTERACTIVETOOLSFRAMEWORK_API virtual void SetOwnerVisibility(bool bVisible) const;
29 INTERACTIVETOOLSFRAMEWORK_API virtual FTransform GetWorldTransform() const;
30
31 // UObject
32 INTERACTIVETOOLSFRAMEWORK_API void BeginDestroy() override;
33
34protected:
36
37 INTERACTIVETOOLSFRAMEWORK_API void InitializeComponent(USceneComponent* ComponentIn);
38
40
41private:
42#if WITH_EDITOR
43 INTERACTIVETOOLSFRAMEWORK_API void OnObjectsReplaced(const FCoreUObjectDelegates::FReplacementObjectMap& Map);
44#endif
45};
46
50UCLASS(Transient, MinimalAPI)
58
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
Definition ToolTarget.h:54
Definition SceneComponentBackedTarget.h:22
Definition Object.h:95
Definition SceneComponentToolTarget.h:52
Definition SceneComponentToolTarget.h:18
TWeakObjectPtr< USceneComponent > Component
Definition SceneComponentToolTarget.h:39
Definition ToolTarget.h:92
virtual UToolTarget * BuildTarget(UObject *SourceObject, const FToolTargetTypeRequirements &TargetTypeInfo) PURE_VIRTUAL(UToolTargetFactory
Definition ToolTarget.h:97
virtual bool CanBuildTarget(UObject *SourceObject, const FToolTargetTypeRequirements &TargetTypeInfo) const PURE_VIRTUAL(UToolTargetFactory
Definition ToolTarget.h:96
Definition ToolTarget.h:40
Definition WeakObjectPtrTemplates.h:25