- Home /
Error BCE0051: Operater '==' cannot be used. Please Help!
Hello,
Im getting error BCE0051: Operater '==' cannot be used. I have supplied a picture of the errors I'm getting:
This is the script I'm trying to get working:
If you know how to fix this problem, Please leave a comment below on how to do so.
Regards, Raxis!
The types of RotationAxisRotationXY and RotationAxis.$$anonymous$$ouseX seem to differ. You need to make sure they are similar.
How would I do that to get a $$anonymous$$ouse Look Script going. What do you suggest?
Answer by Seth-Bergman · Aug 06, 2012 at 02:07 PM
RotationAxisRotationXY needs to be typecast as a RotationAxis:
wherever you're declaring it, say
var RotationAxisRotationXY : RotationAxis = (...etc)
that should fix it
Thanks, so ins$$anonymous$$d of RotationAxisRotationXY I type it as RotationAxis
I just didn't get the last part. Hang on, I think I get it. I'm just a little confused xD
you didn't show that part of the code...
where is RotationAxisRotationXY first defined?
that is where the problem lies
Ohh, I feel so stupid. The variable is not declared as an actuall Rotation Axis yet. Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220613075243im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
what is wrong with this online FPS script(not done) ? 1 Answer
Why is this player script not working 1 Answer
BCE0044 Error 1 Answer
FPS weapon sway script error 0 Answers
GUI Scale Problem 1 Answer