Files
UnrealEngine/Engine/Source/Editor/UnrealEd/Classes/Animation/EditorAnimSegment.h
2025-05-18 13:04:45 +08:00

39 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
/**
* Abstract base class of animation composite base
* This contains Composite Section data and some necessary interface to make this work
*/
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "Animation/EditorAnimBaseObj.h"
#include "Animation/AnimCompositeBase.h"
#include "EditorAnimSegment.generated.h"
DECLARE_DELEGATE_OneParam( FOnAnimSegmentChanged, class UEditorAnimSegment*)
UCLASS(hidecategories=UObject, MinimalAPI, BlueprintType)
class UEditorAnimSegment: public UEditorAnimBaseObj
{
GENERATED_UCLASS_BODY()
public:
/** Default blend in time. */
UPROPERTY(EditAnywhere, Category=Montage)
FAnimSegment AnimSegment;
int AnimSlotIndex;
int AnimSegmentIndex;
virtual void InitAnimSegment(int32 AnimSlotIndex, int32 AnimSegmentIndex);
virtual bool ApplyChangesToMontage() override;
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
virtual bool PropertyChangeRequiresRebuild(FPropertyChangedEvent& PropertyChangedEvent) override;
};