Reading from a `transform_component`'s local or global transforms properties leads to server crash.

Summary

Reading the properties of a transform_component’s local or global transform will lead to a server crash.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

using { /Verse.org/SceneGraph }
using { /Verse.org/Simulation }
using { /Fortnite.com/Devices }
using { /Verse.org/SpatialMath }

crashing_component<public> := class<final_super>(component):

    @editable
    ButtonDevice : button_device = button_device{}

    OnSimulate<override>()<suspends>:void =
        NewEntity := entity{}
        NewEntity.AddComponents(array{transform_component{Entity:=NewEntity}})
        Entity.AddEntities(array{NewEntity})

        ButtonDevice.InteractedWithEvent.Await()

        # Crashing
        if (T := NewEntity.GetComponent[transform_component]):
            Print("{T.GlobalTransform.Translation}") # or Scale (crashes on LocalTransform too)

1 Add this component to an entity in the scene.
2 Add a button device to the editable property.
3 Launch a game and press the button.

Expected Result

The properties get read, and no server crash happens.

Observed Result

The server crashes.

Platform(s)

Windows 11

Island Code

5063-8722-3245

FORT-976754 has been added to our ‘To Do’ list. Someone’s been assigned this task.