Need clarifications about packages and serialization.
I am currently working on a custom graph editor, taking inspiration from FSoundCueEditor and ran into this error, after calling MarkPackageDirty() on my object and then saving :
Can't save ../../../../../../[path_to_game_project]/LullabyGardens/Content/Lullaby/NPC/Abigail/AbigailDialogDatabase.uasset: Graph is linked to private object(s) in an external package. External Object(s): DialogGraph_0
I am pretty sure the error comes because of this member variable :
I think that the reference to the graph is causing the error. I then looked at the overriden method Serialize in USoundCue, and saw that the graph is serialized with the sound cue.
I then tried to do the same thing in my version of serialize, as follows :
After changing Serialize, I couldn't launch the editor, as the serial size with the new functions was different.
This brings me to my questions :
1) How can I save a dirty asset that references my graph? Do I need to do call a function in the same vein as MarkPackageDirty() ?
2) How can I override Serialize(), while avoiding the size mismatch error?
Nevermind, I managed to solve the problem by looking at SavePackage.cpp and playing around with object flags.
answered Mar 14 '17 at 09:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here