42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MediaStreamObjectSchema.h"
|
|
|
|
#include "GameFramework/Actor.h"
|
|
#include "MediaStream.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "MediaStreamObjectSchema"
|
|
|
|
UObject* FMediaStreamObjectSchema::GetParentObject(UObject* InObject) const
|
|
{
|
|
if (InObject)
|
|
{
|
|
if (AActor* Actor = InObject->GetTypedOuter<AActor>())
|
|
{
|
|
return Actor;
|
|
}
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
|
|
UE::Sequencer::FObjectSchemaRelevancy FMediaStreamObjectSchema::GetRelevancy(const UObject* InObject) const
|
|
{
|
|
// Return a non-zero priority so that it wins against the default relevancy
|
|
return UE::Sequencer::FObjectSchemaRelevancy(UMediaStream::StaticClass(), 1000);
|
|
}
|
|
|
|
TSharedPtr<FExtender> FMediaStreamObjectSchema::ExtendObjectBindingMenu(TSharedRef<FUICommandList> InCommandList
|
|
, TWeakPtr<ISequencer> InSequencerWeak
|
|
, TConstArrayView<UObject*> InContextSensitiveObjects) const
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
FText FMediaStreamObjectSchema::GetPrettyName(const UObject* InObject) const
|
|
{
|
|
return LOCTEXT("Media", "Media");
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|