• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Raxis · Aug 06, 2012 at 01:36 PM · errorfpsmouselookbce0051

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:

alt text

This is the script I'm trying to get working:

alt text

If you know how to fix this problem, Please leave a comment below on how to do so.

Regards, Raxis!

unity answers pic .5.jpg (97.2 kB)
unity answers pic .4.jpg (36.0 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fafase · Aug 06, 2012 at 01:38 PM 0
Share

The types of RotationAxisRotationXY and RotationAxis.$$anonymous$$ouseX seem to differ. You need to make sure they are similar.

avatar image Raxis · Aug 06, 2012 at 01:50 PM 0
Share

How would I do that to get a $$anonymous$$ouse Look Script going. What do you suggest?

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Raxis · Aug 06, 2012 at 02:20 PM 0
Share

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

avatar image Seth-Bergman · Aug 06, 2012 at 02:27 PM 0
Share

you didn't show that part of the code...

where is RotationAxisRotationXY first defined?

that is where the problem lies

avatar image Raxis · Aug 06, 2012 at 02:35 PM 0
Share

Ohh, I feel so stupid. The variable is not declared as an actuall Rotation Axis yet. Thanks!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

BCE0044 Error 1 Answer

GUI Scale Problem 1 Answer

[Closed] MainMenu Script error 2 Answers

FPS weapon sway script error 0 Answers

what is wrong with this online FPS script(not done) ? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges