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 Wekthor · Jan 19, 2012 at 05:30 PM · errorxcodeversionlion

Converting project from Unity 3.3 to 3.4 ERRORS

I just installed Unity 3.4 on my new Mac ( Lion OS ). When i opened there Unity project from Unity 3.3 ( iphone game working without any errors on 3.3 ) it gives me over 60 errors. Very strange errors. Like gameObject is not member of Object. Transform is not member of object etc etc. I am totaly confused what is the issue.

I of course installed old version of Unity and game works without any issues. But thing is i cannot use old version of Unity, because it doesnt work with new version of Xcode ( 4.2 etc, from what i know ). And i need to install new Xcode since Lion doesnt cope with old versions of Xcode ( 3.2.5 i was using ).

So the thing is i need to use new version of Unity. Anyone having any idea what can be causing errors when translating from older Unity to newer version with Iphone game ?

Thanks for any reply.

Comment
Add comment · Show 3
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 Kryptos · Jan 19, 2012 at 08:06 PM 0
Share

Are your script written in JS or C#? I guess JS...

I might be wrong, but if I recall, JS script are now 'strict' by default. Therefore al variables need to be correctly typed.

avatar image Wekthor · Jan 19, 2012 at 09:17 PM 0
Share

i got both js and c#. I always properly declare variables with type. But if that could be issue, i will have a look into it.

But as i said most of the errors are in js scripts. And those are things like transform is not member of object. But of course it is member of object since its gameobject and it works in 3.3 without any issue. So thats weird.

avatar image Kryptos · Jan 19, 2012 at 09:30 PM 0
Share

As I said this is related to strict JS. $$anonymous$$ost Unity method returns object of type Object or Component such as FindObject and GetComponent. Therefore, you need to cast the return value to make it work.

Not casting was allowed in previous version of Unity (relaying on dynamic typing), but not in strict JS which now is the regular setting of scripts.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Semantic Issue Use of undeclared identifier 'GL_BGRA_EXT' 1 Answer

How to tell which version of unity and xcode was used 0 Answers

Unity iPhone - Player Settings - iPhone SDK Version (missing) 6 Answers

Problems when building using Xcode 0 Answers

Unity to Xcode Problem 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