Navigation
API > API/Runtime > API/Runtime/MovieScene
| Name | MovieSceneHelpers |
| Type | class |
| Header File | /Engine/Source/Runtime/MovieScene/Public/MovieSceneCommonHelpers.h |
| Include Path | #include "MovieSceneCommonHelpers.h" |
Syntax
class MovieSceneHelpers
Structs
| Name | Remarks |
|---|---|
| FMovieSceneScopedPackageDirtyGuard | Helper struct to cache the package dirty state and then to restore it after this leaves scope. |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float CalculateWeightForBlending
(
UMovieSceneSection* SectionToKey, |
Get weight needed to modify the global difference in order to correctly key this section due to it possibly being blended by other sections. | MovieSceneCommonHelpers.h | |
static UCameraComponent * CameraComponentFromActor
(
const AActor* InActor |
Get the active camera component from the actor | MovieSceneCommonHelpers.h | |
static UCameraComponent * CameraComponentFromRuntimeObject
(
UObject* RuntimeObject |
Find and return camera component from the runtime object | MovieSceneCommonHelpers.h | |
static bool CopyObjectTemplate
(
UMovieSceneSequence* Sequence, |
If the binding for the given ObjectId supports object templates, copies the object template into the binding and returns true, otherwise returns false | MovieSceneCommonHelpers.h | |
static TSharedRef< UE::MovieScene::FSharedPlaybackState > CreateTransientSharedPlaybackState
(
UObject* WorldContext, |
For cases where the user does not have a IMovieScenePlayer with a shared playback state, creates a transient one. | MovieSceneCommonHelpers.h | |
static bool EvaluateSequenceCondition
(
const FGuid& BindingID, |
Helper function for evaluating a condition in a movie scene, taking advantage of any cacheing that may apply. | MovieSceneCommonHelpers.h | |
static UMovieSceneSection * FindNearestSectionAtTime
(
TArrayView< UMovieSceneSection*const > Sections, |
Finds the nearest section to the given time | MovieSceneCommonHelpers.h | |
static UMovieSceneSection * FindNextSection
(
TArrayView< UMovieSceneSection*const > Sections, |
Find the next section that doesn't overlap - the section that has the next closest start time to the requested start time | MovieSceneCommonHelpers.h | |
static UMovieSceneSection * FindPreviousSection
(
TArrayView< UMovieSceneSection*const > Sections, |
Find the previous section that doesn't overlap - the section that has the previous closest start time to the requested start time | MovieSceneCommonHelpers.h | |
static UMovieSceneSection * FindSectionAtTime
(
TArrayView< UMovieSceneSection*const > Sections, |
Finds a section that exists at a given time | MovieSceneCommonHelpers.h | |
static bool FixupConsecutiveBlendingSections
(
TArray< UMovieSceneSection* >& Sections, |
Fix up consecutive sections so that there are no gaps, but there can be overlaps, in which case the sections blend together. | MovieSceneCommonHelpers.h | |
static bool FixupConsecutiveSections
(
TArray< UMovieSceneSection* >& Sections, |
Fix up consecutive sections so that there are no gaps | MovieSceneCommonHelpers.h | |
static const UClass * GetBoundObjectClass
(
UMovieSceneSequence* Sequence, |
Returns the bound object class for the binding for the given ObjectId. | MovieSceneCommonHelpers.h | |
static TArray< UObject * > GetBoundObjects
(
const FMovieSceneSequenceID& SequenceID, |
Returns the objects currently bound to the given objectid and binding index (optional). | MovieSceneCommonHelpers.h | |
static void GetDescendantMovieScenes
(
UMovieSceneSequence* InSequence, |
Gather up descendant movie scenes from the incoming sequence | MovieSceneCommonHelpers.h | |
static void GetDescendantSubSections
(
const UMovieScene* InMovieScene, |
Gather up descendant movie scene sub-sections from the incoming movie scene | MovieSceneCommonHelpers.h | |
static FText GetDisplayPathName
(
const UMovieSceneTrack* Track |
Get displayable names | MovieSceneCommonHelpers.h | |
static FText GetDisplayPathName
(
const UMovieSceneSection* Section |
MovieSceneCommonHelpers.h | ||
static FText GetDisplayPathName
(
const UMovieSceneSection* Section, |
MovieSceneCommonHelpers.h | ||
static UObject * GetObjectTemplate
(
UMovieSceneSequence* Sequence, |
If the binding for the given ObjectId supports object templates, returns the template, otherwise returns nullptr | MovieSceneCommonHelpers.h | |
static void GetPrioritySortedCustomBindingTypes
(
TArray< const TSubclassOf< UMovieSceneCustomBinding > >& OutCustomBindingTypes |
Returns a sorted list of all custom binding type classes currently known. | MovieSceneCommonHelpers.h | |
static UObject * GetResolutionContext
(
UMovieSceneSequence* Sequence, |
Finds the resolution context to use to resolve the given guid. | MovieSceneCommonHelpers.h | |
static const UMovieSceneCondition * GetSequenceCondition
(
const UMovieSceneTrack* Track, |
Given a movie scene track and an optional section inside it, returns an optional single condition that needs to be evaluated. | MovieSceneCommonHelpers.h | |
static UObject * GetSingleBoundObject
(
UMovieSceneSequence* Sequence, |
MovieSceneCommonHelpers.h | ||
static float GetSoundDuration
(
USoundBase* Sound |
Get the duration for the given sound | MovieSceneCommonHelpers.h | |
static bool IsBoundToAnySpawnable
(
UMovieSceneSequence* Sequence, |
Returns whether the given ObjectId is valid and is currently bound to at least 1 spawnable give the current context. | MovieSceneCommonHelpers.h | |
static bool IsBoundToSpawnable
(
UMovieSceneSequence* Sequence, |
Returns whether the given ObjectId is valid and is the given bindingindex is currently bound to a spawnable give the current context. | MovieSceneCommonHelpers.h | |
static bool IsSectionKeyable
(
const UMovieSceneSection* |
MovieSceneCommonHelpers.h | ||
static UObject * MakeSpawnableTemplateFromInstance
(
UObject& InSourceObject, |
Return a copy of the source object, suitable for use as a spawnable template. | MovieSceneCommonHelpers.h | |
static FString MakeUniqueBindingName
(
UMovieScene* InMovieScene, |
Return a name unique to the binding names in the given movie scene | MovieSceneCommonHelpers.h | |
static FString MakeUniqueSpawnableName
(
UMovieScene* InMovieScene, |
Return a name unique to the spawnable names in the given movie scene | MovieSceneCommonHelpers.h | |
| MovieSceneCommonHelpers.h | |||
static USceneComponent * SceneComponentFromRuntimeObject
(
UObject* Object |
Get the scene component from the runtime object | MovieSceneCommonHelpers.h | |
static bool SetObjectTemplate
(
UMovieSceneSequence* Sequence, |
If the binding for the given ObjectId supports object templates, sets the template and returns true, otherwise returns false | MovieSceneCommonHelpers.h | |
static void SetRuntimeObjectMobility
(
UObject* Object, |
Set the runtime object movable | MovieSceneCommonHelpers.h | |
static void SortConsecutiveSections
(
TArray< UMovieSceneSection* >& Sections |
Sort consecutive sections so that they are in order based on start time | MovieSceneCommonHelpers.h | |
static bool SortLowerBounds
(
TRangeBound< FFrameNumber > A, |
Sort predicate that sorts lower bounds of a range | MovieSceneCommonHelpers.h | |
static bool SortOverlappingSections
(
const UMovieSceneSection* A, |
Sort predicate that sorts overlapping sections by row primarily, then by overlap priority | MovieSceneCommonHelpers.h | |
static bool SortUpperBounds
(
TRangeBound< FFrameNumber > A, |
Sort predicate that sorts upper bounds of a range | MovieSceneCommonHelpers.h | |
static bool SupportsObjectTemplate
(
UMovieSceneSequence* Sequence, |
Returns whether the binding for the given ObjectId supports object templates | MovieSceneCommonHelpers.h | |
static FGuid TryCreateCustomSpawnableBinding
(
UMovieSceneSequence* Sequence, |
Attempts to create a new custom spawnable binding for the passed in UObject*. | MovieSceneCommonHelpers.h |