TPropertyValueStorage

Templated storage for any initial value type, templated on the same parameter as [TPropertyComponents](API\Runtime\MovieScene\EntitySystem\TPropertyComponents) for correct retrieval of resolved properties Initial values are stored as a sparse array, with stable indices that uniquely identify the value.

Windows
MacOS
Linux

Inheritance Hierarchy

IPropertyValueStorage

TPropertyValueStorage

References

Module

MovieScene

Header

/Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneInitialValueCache.h

Include

#include "EntitySystem/MovieSceneInitialValueCache.h"

Syntax

template<typename PropertyTraits>
struct TPropertyValueStorage : public UE::MovieScene::IPropertyValueStorage

Remarks

Templated storage for any initial value type, templated on the same parameter as TPropertyComponents for correct retrieval of resolved properties Initial values are stored as a sparse array, with stable indices that uniquely identify the value. A look-up-table exists for finding indices based on an object and resolved property.

Functions

Name Description

Public function

FInitialValu...

 

AddInitialValue

(
    UObject* BoundObject,
    const StorageType& InValue,
    uint16 ResolvedPropertyOffset
)

Add a cached value for the specified object and fast property ptr offset, returning a unique index for the value @note Value must not have been cached previously - doing so will result in a failed assertion

Public function

FInitialValu...

 

AddInitialValue

(
    UObject* BoundObject,
    const StorageType& InValue,
    FCustomPropertyIndex AccessorIndex
)

Add a cached value for the specified object and a custom property accessor, returning a unique index for the value @note Value must not have been cached previously - doing so will result in a failed assertion

Public function

FInitialValu...

 

AddInitialValue

(
    UObject* BoundObject,
    const StorageType& InValue,
    FTrackInstancePropertyBindings*...
)

Add a cached value for the specified object and a slow bindings instance, returning a unique index for the value @note Value must not have been cached previously - doing so will result in a failed assertion

Public function

const Storag...

 

FindCachedValue

(
    UObject* BoundObject,
    uint16 ResolvedPropertyOffset
)

Find an initial value given its object and property name.

Public function

const Storag...

 

FindCachedValue

(
    UObject* BoundObject,
    FCustomPropertyIndex CustomIndex
)

Find an initial value given its object and custom accessor index

Public function

const Storag...

 

FindCachedValue

(
    UObject* BoundObject,
    const FName& PropertyPath
)

Find an initial value given its object and property name.

Public function

TOptional< F...

 

FindPropertyIndex

(
    UObject* BoundObject,
    uint16 ResolvedPropertyOffset
)

Find an initial value index given its object and fast ptr offset

Public function

TOptional< F...

 

FindPropertyIndex

(
    UObject* BoundObject,
    FCustomPropertyIndex AccessorIndex
)

Find an initial value index given its object and custom accessor index

Public function

TOptional< F...

 

FindPropertyIndex

(
    UObject* BoundObject,
    const FName& PropertyPath
)

Find an initial value index given its object and property name.

Public function

const Storag...

 

GetCachedValue

(
    FInitialValueIndex Index
)

Find an initial value given its object and property name.

Overridden from IPropertyValueStorage

Name Description

Public function Virtual

void

 

Reset

(
    TArrayView< const FInitialValueInde...
)

Reset all the initial values that relate to the specified indices

Typedefs

Name

Description

FPropertyKey

StorageType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss