Summary
the value inside of the entity prefab should be default but the output is the changed version from an entity that shouldnt have interacted with it
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Scene Graph
Steps to Reproduce
- create an entity with a sub entity
- add a component to the sub entity that has a variable(of any printable type) that prints when the entity is created
- create 2 classes outside of the components, these can be put anywhere as long as they can be accessed anywhere
3a. one class should have 2 editable values, 1 thats the same type as the component above, the other is an array of entities
3b. the same class should have a function that uses a for loop and gets the component that has the value created earlier and adds the value this component has to it
3c. create a class that inherits from the previous and doesnt override anything - create a component for the main entity, this will have an editable array of the first classes value from step 3
4b. in the entity prefab add 2 of the first class from step 3 and make the sub entity be the entity in its array and the other value just be different than the other on of this class
4c. call all of the functions somewhere in the code that runs after OnSimulate, preferably after a few seconds to confirm it didnt change the value before step 2s print - create a verse device that spawns more of the main entity from the prefab, then place the device into the world
6.place main entity into the scene and override the first value in the array of main entity component to be the second class and set its other values to match what it was when it was the previous class - run the game and observe
Expected Result
the value printed from the component in step 2 should always be the value set in t he component as its printing before anything can change its value
Observed Result
The value printed from the component in step 2 is printing a modified value instead of the default value
Platform(s)
PC
Upload an image
Additional Notes
I tried my best to create the step by step instructions, some of the images should be able to help explain what the instructions are talking about
I hope I explained this well enough





