If my device’s Verse script contains a field whose type is another user-created class, the editor will crash if you try to compile Verse scripts while there is an instance of that device in the scene.
To repro:
- Create this verse script:
using { /Fortnite.com/Devices }
using { /Verse.org/Native }
using { /EpicGames.com/Temporary/Diagnostics }
log_test_thing:=class(log_channel){}
test_thing := class<concrete>(creative_device):
Logger:log = log{Channel:=log_test_thing}
var TestObject : test_number = test_number{}
OnBegin<override>()<suspends>:void=
Logger.Print("Verse device started!")
test_number := class():
var Value : int = 0
- compile Verse
- drag an instance of this device into the scene
- compile Verse again
This should crash the editor with the error “Objects have the same fully qualified name but different paths”