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
1
Question by neon9999 · Jan 10, 2012 at 08:41 PM · c#export.netflash3.5

.NET code in Flash export (3.5 beta)

When trying to export to Flash using the 3.5 beta (3.5.0b6 to be exact), there are some SWF export problems, that seem to point to the fact that only a subset of .NET is implemented in AS3, so some of the methods are undefined.

The errors are of the kind:

 Error building Player: Exception: Compiling SWF Failed:
 (...)
 Call to a possibly undefined method (...) through a reference with static type (...)

The undefined methods are all String and List operations, and all the XML (`XmlDocument` and such).

Are these not supported because only a specific version of the .NET runtime is targeted? Maybe for this beta only a subset of .NET is implemented, but it will all be implemented in time?

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 MartinCA · Jan 11, 2012 at 12:45 AM 0
Share

I think there's only a subset of .NET currently implemented - will it change in the future? I have no idea.

However, I can tell you from experience none of the .NET Generics are currently implemented - your best bet is probably using ArrayLists ins$$anonymous$$d.

On the bright side, my own Type T templates compile just fine - which is an awesome feature considering AS3 itself does not support templates, and only has the Vector.T class available for templating :)

avatar image yoyo · Oct 13, 2012 at 09:07 PM 0
Share

If you select the Flash build in build settings when you will see that the "Flash Player Subset" of .NET is targeted. Unfortunately it doesn't check against this in the Editor, only when you build your swf file. I assume the subset will grow over time, but that it will never be complete.

avatar image yoyo · Oct 13, 2012 at 09:28 PM 0
Share

Regarding generic collections, with Unity 3.5.6f4 I can use List and Stack, but not LinkedList. So try the collection you want to use and see if it's available.

1 Reply

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

Answer by Julien-Lynge · Jan 11, 2012 at 12:59 AM

The Unity folks did specifically say earlier this year that only a subset of .NET and Unity functionality (e.g. no Networking) will be in place to start. I don't remember the exact wording, but something along the lines of "we're starting with the most common features and expanding support later."

There's a full list of supported and unsupported features linked from the 3.5 release notes:

http://unity3d.com/unity/preview/faq

Search for "Okay, so what works and what doesn't?"

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

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

7 People are following this question.

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

Related Questions

ECDiffieHellmanCng missing from unity? 1 Answer

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

3.5 Flash Export - Compiles fine, but no resources 0 Answers

Flip over an object (smooth transition) 3 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