- Home /
New prefab system doesn't allow buttons to work well.
So when you create a button and make it into a prefab, the area where you drag the object where you want to call a void, is empty on instantiation. I wasn't able to keep it from instantiating blank no matter which way i tried it. It doesn't save the object in the button and just leaves it at null. If you make the other object a prefab too, and then drag the object as a prefab into the button slot... It then runs the prefab version of the object and not the scene one, so operations that require the hierarchy to do like transform.parent, no longer work and even .find won't work. plus I since it runs off the in folder prefab any changes to variables and other things won't have any effect on anything.
to replicate this problem i have you should just be able to, 1 have a instantiated button that gets created, and 2 a void you need to call on another place in the hierarchy.
Please tell me if you get this to work.