Skip to content

Movable actors reset to (0, 0, 0) on load if its level has never been set visible #72

@rtorrisi

Description

@rtorrisi

Saving actors in a level that has never been set to visible, result in a reset of Transform to (0, 0, 0) when loading back and set the level visible.

Steps to reproduce the behavior:

  1. Create a persistent level A
  2. Create a sublevel B
  3. Add a movable actor to be serialized in B
  4. Stream in B but set it not visible.
  5. Save
  6. Load, stream B and set it visible.
  7. Actor tranform is reset to 0,0,0
  • Engine Version: 4.26.2
  • Plugin Version: 1.4
  • OS: Windows 10

Possible solution (already tested):

Replace this line

(this implementation doesn't work due to world (used in GetTransform) beeing not valid if the level has never been streamed in.)

with

Record.Transform = Actor->GetRootComponent()->GetRelativeTransform();

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingTo Be ReproducedHas not been reproduced

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions