UMovieSceneTrackInstance::GetWorld() returns nullptr on Editor, so user can't use any function using WorldContext and Subsystem.
The following code change may fix this issue
UWorld* UMovieSceneTrackInstance::GetWorld() const { #if WITH_EDITOR return AnimatedObject ? AnimatedObject->GetWorld() : GEditor->GetEditorWorldContext().World(); #else return AnimatedObject ? AnimatedObject->GetWorld() : Super::GetWorld(); #endif }
Expect : Compile success
Result : Compile Fail
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-181508 in the post.
| 1 |
| Component | UE - Anim - Sequencer |
|---|---|
| Affects Versions | 5.1 |
| Target Fix | 5.3 |
| Created | Mar 28, 2023 |
|---|---|
| Resolved | Mar 31, 2023 |
| Updated | Apr 29, 2023 |