Page 1 of 1

Problem with saving gameobjects and childs

Posted: Thu Nov 25, 2021 9:45 am
by chenoavw
Hello,

I am currently working on an android app with Unity. We have a little problem with saving a gameobject and its childs. We have a scene where you can draw and put sprite gameobjects on the drawing canvas. When we try to save the gameobject in a file it says: "{"Stamps":{"__type":"UnityEngine.GameObject,UnityEngine.CoreModule","value":null}} ". When we try to load the gameobject it fails (maybe we are doing something wrong).

How can we save and load the complete gameobject with its children attached?

Thanks in advance.

Re: Problem with saving gameobjects and childs

Posted: Thu Nov 25, 2021 10:55 am
by Joel
Hi there,

You’re trying to save Transform.parent as a GameObject, but Transform.parent is a Transform, not a GameObject.

All the best,
Joel

Re: Problem with saving gameobjects and childs

Posted: Thu Nov 25, 2021 1:22 pm
by chenoavw
Hii,

Thank you for the quick reply!

Greetings,
Chenoa