Summary
Adding the same entity constant to the AddEntities parameter array doesn’t create an error when compiling and crashes the live session when called.
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
- Create code where the same entity is added to AddEntities parameter array multiple times
var EntityArray : entity = array{}
BodyPrefab:entity = carPrefabs.Pf_CarBody{}
WheelPrefab := wheelPrefabs.Pf_CarWheel{}
set EntityArray += array{BodyPrefab,WheelPrefab,WheelPrefab,WheelPrefab,WheelPrefab}
Entity.AddEntities(EntityArray)
- add it to a verse device or component so it gets called during the game
- Compile Verse Code(No Errors)
- Launch Live Session
Expected Result
Some type of compilation error that prevents this from happening
Observed Result
No Compile Errors
After calling AddEntities during the game, the session freezes for a minute or two then crashes to Fortnite lobby
Platform(s)
UEFN PC
Additional Notes
I already know this is the incorrect way to do it, I was just messing around with scene graph. The reason I found this is because at first I thought that AddEntities would work similar to SpawnProp and by creating that constant, I was only referencing the prefab asset in the content folder.