• 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 nilotic · Oct 10, 2013 at 02:34 AM · 4.2

I can't build an unity project.

First my english is not good, So, I hope to understand this matter.

I imported unity project. This project version is 3.x. So I went through process of converting (4.x)

And I was modified that does not supported api, etc in source code.

Script Build is OK. But I can't build about iOS, Android, etc.

Error message is

  • Type 'HttpRequest' has an extra field 'headers' of type 'System.Collections.Generic.Dictionary' in the player and thus can't be serialized UnityEditor. HostView:OnGUI();

  • Type' HttpRequest' has an extra field 'uri' of type 'System.String' in the player and thus can't be serialized UnityEditor.HostView:OnGUI()

  • Type 'HttpRequest' has an extra field 'method' of type 'System.String" in the player and thus can't be serialized UnityEditor.HostView:OnGUI()

.. etc..

I dont' know what is mean. Could I get some advice?

Comment
Add comment · Show 2
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 $$anonymous$$ · Oct 10, 2013 at 03:45 AM 0
Share

Can you post the code from your OnGUI function?

avatar image Graham-Dunnett ♦♦ · Oct 10, 2013 at 10:53 AM 0
Share

@$$anonymous$$ - this is not related to OnGUI(). It appears in the errors only because the editor is built using OnGUI().

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by meat5000 · Oct 10, 2013 at 11:21 AM

Type' HttpRequest' has an extra field 'uri'

uri Is this your error? I'm assuming you mean URL?

Do these strings need capitals? The error suggests you are adding extra fields. This would happen when you get Typos.

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 $$anonymous$$ · Oct 10, 2013 at 11:04 AM

Looks like some people saw this before:

  • http://forum.unity3d.com/threads/63401-Unity-3-Build-Problem-UnityEditor-Hostview-OnGUI()

  • http://answers.unity3d.com/questions/29462/build-fails-in-unity-30.html

  • http://answers.unity3d.com/questions/40306/cant-export-game.html

It looks like 3d party DLLs could be the issue here, try upgrading the plugin DLLs or changing the API compatibility level in build settings to full .NET 2.0 instead of .NET 2.0 Subset.

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 Astarorr · Nov 13, 2014 at 03:57 PM

Just got same problem. Solution is to specify 'private' modifier for field.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

18 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

Related Questions

Upgraded to unity 4.2. Now all existing particle effects are ignoring 'Color Over Time' 1 Answer

Does the Free shadows in 4.2 work for Android? 0 Answers

Unity's version control conflicts between 4.2 and 4.3 0 Answers

Shuriken Collision Detection 0 Answers

is this a shadow bug (unity 4.2 android) 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