So yea question is a mouthful, Let me try to simplify.
I’m currently trying to create a component that through c++ makes a new FGuid whenever it is placed in a level. So the FGuid generation is working and I can see each component placed with a unique id, however, I want to keep each FGuid persistent through editor sessions. I should be able to close and open unreal and each FGuid should stay the same instead of getting reset back to 0.
However, it seems Unreal doesn’t save properties unless you explicitly change them through the details view so my FGuids keeps getting reset everytime I restart Unreal unless I explicitly generate them through the details panel.
I’ve tried numerous different things including
- Extending the FActorComponentInstanceData struct, but this doesn’t seem to work because the values for the FGuid are being loaded onto the actor which are just loaded onto the struct which is then loaded onto the actor. Seems kind of useless tbh.
- Using Modify and/or Pre/PostEditChangeProperty
Should specify that this FGuid generation is directly on the component itself. I just don’t understand how Unreal goes about saving components and actors placed in the world.
Sorry for the essay