Hello,
I recently got really annoyed by my pc errors which mess up my Unity3d scenes.
It’s nothing serious, because all the scripts are ok, but the problem is that I have tons of GUIStyles and if re-add the script, then I’m gonna have to go through all this process off setting up the GUIStyle via inspector (adding textures, setting widths/ heights etc etc.) which is a real pain…
I decided that the best option to avoid this would be to define all those settings inside scripts so they would be default and I wouldn’t need to do anything in inspector after re-adding script, but how do i do that?
I tried doing something like this:
to define default fixedWidth for that gui style, but it didn’t work. No errors but just didn’t work.
How do you do it? How do you change stuff of guistyle inside script?
thank’s.