You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Multiple wdgets animations can share the same BP extension since the BP is the UserWidget itself. #rb max.chen #jira UE-189308 [CL 26212155 by ludovic chabant in ue5-main branch]
56 lines
1.6 KiB
C++
56 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Blueprint/BlueprintExtension.h"
|
|
#include "Containers/Array.h"
|
|
#include "HAL/PlatformCrt.h"
|
|
#include "UObject/UObjectGlobals.h"
|
|
#include "UObject/WeakObjectPtrTemplates.h"
|
|
|
|
#include "MovieSceneDynamicBindingBlueprintExtension.generated.h"
|
|
|
|
class FKismetCompilerContext;
|
|
class UBlueprint;
|
|
class UMovieSceneSequence;
|
|
class UObject;
|
|
struct FMovieSceneCustomizeDirectorBlueprintEndpointCallParams;
|
|
|
|
/**
|
|
* An extension for a sequence's director blueprint to compile dynamic binding endpoints.
|
|
*/
|
|
UCLASS()
|
|
class UMovieSceneDynamicBindingBlueprintExtension : public UBlueprintExtension
|
|
{
|
|
public:
|
|
|
|
GENERATED_BODY()
|
|
|
|
/**
|
|
* Bind this extension to the given sequence. This may be called multiple times, but the extension
|
|
* must only be bound to one sequence.
|
|
*/
|
|
void BindTo(TWeakObjectPtr<UMovieSceneSequence> InMovieSceneSequence);
|
|
|
|
private:
|
|
|
|
virtual void Serialize(FArchive& Ar) override;
|
|
virtual void PostLoad() override;
|
|
|
|
virtual void HandlePreloadObjectsForCompilation(UBlueprint* OwningBlueprint) override final;
|
|
virtual void HandleGenerateFunctionGraphs(FKismetCompilerContext* CompilerContext) override final;
|
|
|
|
void HandleGenerateFunctionGraphs(FKismetCompilerContext* CompilerContext, UMovieSceneSequence* MovieSceneSequence);
|
|
|
|
private:
|
|
|
|
/** List of movie scenes that are bound to the director blueprint */
|
|
UPROPERTY()
|
|
TArray<TWeakObjectPtr<UMovieSceneSequence>> WeakMovieSceneSequences;
|
|
|
|
/** The movie scene that is bound to the director blueprint */
|
|
UPROPERTY()
|
|
TWeakObjectPtr<UMovieSceneSequence> WeakMovieSceneSequence_DEPRECATED;
|
|
};
|
|
|