Hello, I've been experiencing an issue where I've saved and then loaded a gameobject with children. But because ES3 loads the localPosition first, then loads the parent afterward, the loaded child is in the wrong position.
Meaning at the time when localPosition is set, parent = null which means it's setting world position (since null parent localPosition is the same as world position) before parenting it to the parent. Is this intentional behavior or am I messing something up?
Cheers.
Transform loading order
Re: Transform loading order
Hi there,
In these cases it’s usually required to load twice: once to load instances, and again to load their fields correctly.
All the best,
Joel
In these cases it’s usually required to load twice: once to load instances, and again to load their fields correctly.
All the best,
Joel
Re: Transform loading order
Thanks. I'm not sure if it's a permanent fix but I had an idea to edit ES3UserType_Transform, putting the writer.Write("parent") line first means it will load first?
Re: Transform loading order
Hi there,
This could also be a solution for your situation, depending on whether your issue is related to parent load order or general load order.
All the best,
Joel
This could also be a solution for your situation, depending on whether your issue is related to parent load order or general load order.
All the best,
Joel