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 dkoontz · May 25, 2010 at 01:22 AM · iphonemono

C# on iPhone unable to access Mono 2.6 features

The release notes for iPhone 1.6 said Mono was updated to Mono 2.6. However, none of the C# 3 features that are part of Mono 2.6 such as var are compiling. Is Unity iPhone specifically setting a compile flag to force .NET 2.1 only features? Is this necessary for Full AOT compilation? We can get C# 3 features in regular Unity with this hack but I'm not sure what to do for iPhone since the compiler looks to already be updated to 2.6 and there's no 3.0 option in the project's player settings.

If I have to just wait for Unity 3 I suppose that's acceptable, but considering iPhone apps don't depend on any sort of backwards compatibility and Mono has already been upgraded, it would be really nice to have the latest and greatest language features.

Comment
Add comment
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

3 Replies

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

Answer by Mantas-Puida · May 27, 2010 at 09:47 AM

Support for some C# 3.0 features will come to Unity iPhone, but most likely some time after Unity 3.0.

Comment
Add comment · 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
0

Answer by Ashkan_gc · May 25, 2010 at 02:27 AM

what i am writing is just a guess. mono is a runtime with libraries and unity updated it's use of mono so you can compile things like dynamic language runtime for it and some other features but unity don't use the JIT compiler that mono has and wrote a ahead of time compiler. this compiler needs to be updated to support c# 3 features.

Comment
Add comment · Show 2 · 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 dkoontz · May 26, 2010 at 12:50 AM 0
Share

But the AOT compiler is part of the mono compiler toolchain, there's an AOT flag (--aot) you can pass in to get AOT compilation. I understand that "Full AOT" is a bit more involved and requires perhaps picking and choosing how the $$anonymous$$ono runtime is integrated into the execution environment and perhaps that is where the problem is.

avatar image Ashkan_gc · May 26, 2010 at 09:40 AM 0
Share

-AOT is an option for compiling normal apps and it's what the jit do at runtime but iphone's AOT compiler has differences. i am not sure what are the differences exactly. i don't know if unity's mono compiler for the iphone has any relations with mono touch or not but i think you can send this question to support and they'll answer it or just tell some users to vote it up and then staff will notice it.

avatar image
0

Answer by Lucas Meijer 1 · Oct 05, 2010 at 03:18 PM

You don't need that hack in Unity3 to use c# 3.0 features in the editor. Which specific piece of code is not working for you on the iphone? Please also make sure to disable all stripping.

(We allow agressive stripping, which at its strongest level removes quite a lot of mono functionality. Those levels are really intended for the "I dont care about this .NET stuff, I just want to make my dragon walk forward kthnxbyt" scenario)

Comment
Add comment · Show 1 · 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 dkoontz · Oct 05, 2010 at 08:20 PM 0
Share

Things seem to be working fine in Unity 3. $$anonymous$$y issue was with old iPhone 1.x after the $$anonymous$$ono 2.6 update.

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

No one has followed this question yet.

Related Questions

Unity 4.6.3 - Cross Compilation Failed 0 Answers

ios: 2 function calls on the same interface, one working... the other function call doing literally nothing 0 Answers

AOT Runtime Problem: Variable of type IMyInterface changes type to String(impossible..??) 0 Answers

What version of mono does Unity iPhone use, and are there any differences between unity's mono and standard mono? 1 Answer

Will installing a newer mono version break Unity's mono installation ? (OSX) 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