- Home /
When I try change a script var value in inspector it switches to box collider field. Is it a bug?
My apologies if this is asked elsewhere - I have searched but I'm sure my searching isn't up to scratch just yet - started learning about unity this week and quickly falling in love! I'm following the Unity Jump Start videos and although they're basic it's a great start. I've made my player script and attached it to the player object (simply cube) and went ahead to change the lives
variable in the inspector, but whenever I do it switches me to the collider Y
access input box.
Here's a video: http://www.youtube.com/watch?v=G2WslGuwYGI
I'm using Unity 4.1.2f1 on OSX 10.8.3. I also don't have a mouse - just the built in MacBook Air TouchPad.
That does seem strange. $$anonymous$$y first reaction is that you've set your script to execute in edit mode and you set the collider center y value to your the lives value in your update loop...like you're trolling us. But that couldn't be, could it?
If this is legit then it looks quite strange and bug like. Have you tried restarting Unity? Have you filed a bug report?
No, not trolling at all! And no I've nothing strange like that happening - it's still in the very early, basic stages. Literall just a var in the script which I want to set a value to. It does seem to change sometimes but I couldn't, for instance, put on a 2 digit integer because after the first or would shoot up to the other input box. I've not filed a bug report as I wasn't sure if I was doing something silly and thought I'd see if anyone here has any advice first.
Answer by Connor5393 · May 25, 2013 at 08:22 PM
He's definitely not trolling. I'm having the same exact problem except it's jumping me to the x collider input box. It just started happening after I upgraded to 4.1.3f3. I just submitted a bug report. In the mean time, I'm going to change the variable to private and set it in the script. It's a longer more inconvenient process, but it works.
Answer by AndyWarhy · May 27, 2013 at 05:16 PM
I had exactly the same problem (but not with script component, but with Hinge joint and Rigidbody components) after Unity upgrade and I solved it by removing that component and adding it again. Don`t know if it will help also in your case, but it`s worth a try...
Answer by Stardog · Oct 11, 2013 at 11:38 AM
You can fix it by removing each component until the object is empty, then Undo until they're all back.
Just got this bug in 4.2.1.
Your answer
![](https://koobas.hobune.stream/wayback/20220613100521im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Crash on .exe but fine on editor... 1 Answer
Inspector vs Script: Component best practice? 1 Answer
Inspector cannot find script instance 1 Answer
Making a FPS, my gun floats sideways in front of me? 1 Answer