Search found 2 matches

by Anma.wp
Sat May 27, 2023 8:39 am
Forum: General Discussion
Topic: Loading objects that refer to each other
Replies: 2
Views: 967

Re: Loading objects that refer to each other

Joel wrote: Fri May 26, 2023 7:39 am Hi there,

The simplest solution to this is to load twice. Once to load the objects, and again to load the cross-references.

All the best,
Joel
Yep, it works. Thank you.
by Anma.wp
Thu May 25, 2023 9:55 pm
Forum: General Discussion
Topic: Loading objects that refer to each other
Replies: 2
Views: 967

Loading objects that refer to each other

I have runtime instantiated Prefabs whose components can have references to each other. When objects have been loaded some of this references is null. As far as I understand the problem is that referenced components doesn't exist in time when current component is deserializing. However I don't see a...