I have been reading these forums for the past 2 months now and I have always managed to find solutions to my problems here on the forum or somewhere similar. But I can´t find anything about this problem im having so I thought I´d ask here.
I have a scene with only the main camera and 8 JavaScript´s attached to it containing some GUI commands. Everyone of them works perfectly except one, whenever I start Unity that particular script wont run until I remove it from the camera and then re-attache it, then it works perfectly.
It´s really annoying and I can´t figure this out. Any help with this would be greatly appreciated.
What does this script do? and what kind of trouble shootin have you done(ie) restart it on another object or change the name of it or chaeck you editor scripts to see if the name falls under any public class names. I once had a script that when naming it a certain name it would do crazy things, like whenever i edited any values in the inspector it would duplicate it in the inspector. :shock:
I have one script that creates 7 GUI buttons. Then there are 7 other scripts which are not running until one of the buttons is pressed. One of those 7 scripts is not working properly. All the scripts do basically the same thing, run more GUI´s.
I used the Debug.Log to check the variable that activates the script and everything look ok. The name of the script is Messages. Don´t know if that makes a difference.
It looks like when ever I start Unity everything works fine except the texture, font, and guiFont settings I assigned. But they all check out in the inspector. Then I do Remove Component on the script in the main camera then I reattach it and set the font and texture and stuff and everything works fine.
The texture and stuff on all the other scripts work fine when I start Unity.
Welcome to the forum, Kalel!
Please can you file a bug report for this (menu: Help > Report A Problem). If you can attach the project that is having the problem, that would help a lot in tracking down what is wrong.