Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/FSharedPlaybackState
Description
Adds the specified capability on the root sequence. If the capability already exists, it must be stored inline, and its value will be replaced by the new object. If the template parameter is a sub-class of the playback capability, the previously stored playback capability must not only have been stored inline, but must have been of the same sub-class (or a sub-class with the exact same size and alignment).
| Name | SetOrAddCapability |
| Type | function |
| Header File | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneSharedPlaybackState.h |
| Include Path | #include "EntitySystem/MovieSceneSharedPlaybackState.h" |
template<typename T, typename ... ArgTypes>
T & SetOrAddCapability
(
ArgTypes &&... InArgs
)