Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 creepover · Feb 26, 2014 at 01:55 PM · ambiguous reference

Ambiguous reference: how to fix ?

Hi! Can you help me please?!! I have:

BCE0004: Ambiguous reference 'fireMode': fireMode, fireMode.

and the part of script:

 if(mags != null && mags.firstMode != fireMode.launcher){


(sorry for my bad english, I am french...)

Comment
Add comment · Show 4
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 Graham-Dunnett ♦♦ · Feb 26, 2014 at 01:55 PM 0
Share

Nothing wrong with your English :-) just you haven't provided enough code :-(

avatar image KiraSensei · Feb 26, 2014 at 02:41 PM 1
Share

Yes, you should post more code, like what is fire$$anonymous$$ode and how it is declared. $$anonymous$$aybe in the method you are, there is another fire$$anonymous$$ode variable declared and the compiler does not know which one to take.

avatar image perchik · Feb 26, 2014 at 02:51 PM 0
Share

As @$$anonymous$$iraSensei said, the compiler thinks you have two variables named Fire$$anonymous$$ode which is ambiguous, because it doesn't know what you're referring to, but you haven't posted enough code for us to help us actually find the error.

Without seeing your code, you're probably declaring firemode twice (maybe globally and locally...or perhaps you made a typo somewhere and firemode should be firstmode?

avatar image Linus · Feb 26, 2014 at 04:58 PM 0
Share
  • Is there a script called the same as a variable?

    • Is there a variable called the same as a type?

0 Replies

· Add your reply
  • Sort: 

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.

Follow this Question

Answers Answers and Comments

25 People are following this question.

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

Related Questions

need help with a Ambiguous reference 'constructor' 1 Answer

vector3 is ambigous? 1 Answer

BCE0004: Ambiguous reference 'Label' 1 Answer

Input System 1.1.0 Resolving ambiguous gyroscope error 1 Answer

How is it possible to have an ambiguous reference between the same things? 2 Answers


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