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 metaphysician · Jan 30, 2014 at 02:27 AM · importing

Similar named Enums causing import issues

ok big giant Unity Answers brain, i'm having a really weird error. i have a project where i had a script that had an enum called GameState. in another project i created another enum called GameState as well. when i imported this project into the first one it left the conflicting script out, as expected. i eventually found the error and corrected my second project's enum to read WalkthroughGameState. to be safe i changed that name in that script whenever GameState was called, instanced, or made into a variable. so as far as i know there's no overlap in code. no dice - it still doesn't show up when importing the package, but it does show up in a completely blank project. so clearly Unity is seeing a conflict.

is there something about how Unity's compiler parses data that on import it would think that WalkthroughGameState and GameState are related? or is this maybe old metadata getting in the way?

put more simply as a question - does Unity regard similarly Suffixed enums in a script as being related?

any answers appreciated! - thanks...

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 VildNinja · Jan 30, 2014 at 03:02 AM 1
Share

No Unity does not regard similarly suffixed enums in a script as being related.

I think you need to post some more info. Exact error message, and some code.

avatar image metaphysician · Jan 30, 2014 at 03:11 AM 0
Share

no that's it. there is no error - i just don't see whatever Unity thinks will possibly be conflicting on import of the package. thanks! your information is helpful, though....i'm currently trying to rule out metadata corruption/confusion by creating a brand new script, changing the enum again, re-associating it with all my variables and trying the export again. i'll post back again if there's more to update.

avatar image steakpinball · Jan 30, 2014 at 03:11 AM 0
Share

Did you also change the name of the file containing WalkthroughGameState?

avatar image metaphysician · Jan 30, 2014 at 03:25 AM 0
Share

i did - i figure you have to start with a new name as well as a new file. still configuring, but ready to test now...

aaand the first hurdle is over - it shows up in the package import - yay! basically my question's answered. now it's just grinding away importing stuff....annd we're good! works well as far as i can see. thanks everyone! it was getting a little frustrating...

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

20 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

Related Questions

A node in a childnode? 1 Answer

Fastest Way Import 1 Answer

Importing to Unity from Blender questions 1 Answer

Importing from Blender to Unity, animation problem 0 Answers

Importing Mesh from Maya into Unity Issues 0 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