Files
UnrealEngine/Engine/Source/Runtime/MovieSceneTracks/Public/Tracks/IMovieSceneTransformOrigin.h
2025-05-18 13:04:45 +08:00

37 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UObject/ObjectMacros.h"
#include "UObject/Interface.h"
#include "IMovieSceneTransformOrigin.generated.h"
UINTERFACE(Category="Sequencer", Blueprintable, meta=(DisplayName = "Transform Origin"), MinimalAPI)
class UMovieSceneTransformOrigin : public UInterface
{
public:
GENERATED_BODY()
};
/** Interface that should be implemented to provide transform tracks with an origin transform. Scale is ignored. */
class IMovieSceneTransformOrigin
{
public:
GENERATED_BODY()
/** Get the transform origin for this interface */
FTransform GetTransformOrigin() const
{
return NativeGetTransformOrigin();
}
protected:
/** Get the transform from which all absolute component transform sections should be relative. Scale is ignored. */
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent, Category = "Sequencer|Section", DisplayName = "GetTransformOrigin", meta=(CallInEditor="true"))
MOVIESCENETRACKS_API FTransform BP_GetTransformOrigin() const;
virtual FTransform NativeGetTransformOrigin() const { return BP_GetTransformOrigin(); }
};