- Home /
boolean not showing in inspector
so i have new version of unity and have a problem now with boolean not showing up in inspector anymore, which is anoying because the game im making requires a lot of checks on a lot of different booleans. basically when i write
var boo : boolean = true;
it no longer comes up in the inspector as a click box, is this a bug or have they changed the way these work.
try marking it as public and see if it shows up then, maybe the new version is a bit more strict??
public var boo : boolean = true ;
There aren't any bugs with displaying booleans that I know of, nor have they changed the way they work. Provide more detail. @Lo0Nuhti$$anonymous$$: public is the default in Unityscript; you don't need to write it because it's assumed.
I thought maybe the new version didn't have it as default though.
If they changed it, it would break pretty much all existing scripts, so no, it's not something that will happen.
Ok lol I wasn't sure, so it was just a suggestion for them to try.
Answer by reptilebeats · Dec 31, 2011 at 10:35 PM
ok so im answering my own question here but it may help others with stuff not showing up in the component.
so because i was making a super long script when i saved it to make sure certain thing were added because another script i had wasnt finished it was displaying errors so wouldnt update the new script.
so if booleans, gameobjects and whatever isnt showing in the inspector check to see if you have any errors, as they wont change until this is fixed.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How to expose variables in c# according to selected booleans 1 Answer
A node in a childnode? 1 Answer