Solved the problem on my own
Unsolved problems after bulding
I'll be short: im currently finishing an interactive app for a company and im really really stuck with what happens after building:
In some scenes the camera is zoomed (but i didnt add any script to it)
And the most important: when i press certains buttons some gameObjects that should appear remain hiding. In the Unity editor everything works smoothly, and thats why im very confused after building.
I have to present the app in a few days and im really worried about this. Has someone a point?
Please be long. $$anonymous$$ore information wpuld get you to the answer.
Okay here i go:
The app is actually some 2d animations of machines working. When you click on some of them the gameObject that controls all of them goes SetActive(false); and the machine you selected appears larger in the screen with some texts and buttons. That is another gameObject that goes SetActive(true); and it contains the larger machine and the buttons (the text is controlled via Script). This works very well on my Unity Editor, but when i build the app the larger machine doesnt appear (the text and buttons yes).
The other case, but less important: some machines load a scene that contains a 3d simulation of the machines. These scenes have the camera zoomed, and i don't know why.
Better? Thanks for your time.
That is really weird. You could build with script debugging and see what errors occur.
Answer by uriyeah55 · Sep 10, 2016 at 03:13 PM
@TheDiamondPlay
I don't know how to do that... For now i've managed to resolve the zooms of the cameras manually, but the hidden objects trouble still appears. Im very counfused about that.
go to build settings, and enable development build, then tick script debugging
Hey! Sorry to answer like a year later.
I just wanted to clarify that I found the problem. The app involved a lot of sprites, but I was used to an older version of Unity and didn't have much knowledge about the canvas. So i was totally messing up the thing trying to put scene sprites to be appearing in the canvas zone (without putting them INSIDE the canvas). I had to actually get some professional help to find the problem.
Anyway, everything was already solved, just wanted to close the thread ^^ thanks for your help !