Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/FMovieSceneSpawnRegister > API/Runtime/MovieScene/FMovieSceneSpawnRegister/DestroySpawnedObject
References
| Module | MovieScene |
| Header | /Engine/Source/Runtime/MovieScene/Public/MovieSceneSpawnRegister.h |
| Include | #include "MovieSceneSpawnRegister.h" |
bool DestroySpawnedObject
(
const FGuid & BindingId,
FMovieSceneSequenceIDRef TemplateID,
TSharedRef< const FSharedPlaybackState > SharedPlaybackState,
int32 BindingIndex
)
Remarks
Destroy a specific previously spawned object True if an object was destroyed, false otherwise The version without the binding index is to support old clients of the previous API
Parameters
| Name | Description |
|---|---|
| BindingId | ID of the object to destroy |
| TemplateID | Identifier for the current template we're evaluating |
| Player | Movie scene player that is ultimately responsible for destroying the object |
| BindingIndex | For level sequences using custom spawnable bindings, the index of the binding reference. |