Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
3
Question by Manuk · Jun 20, 2011 at 02:36 PM · bugwebplayergenerics

WebPlayer has severe bug in Generics constraint verification (found in Unity 3.3.0f4)

Generics verification fails if a more-constrained generic tries to access a less constrained generic.

 class Blubb
 {
 }
 
 void Foo<T>()
 where T : Blubb 
 {
    Bar<T>();
 }
 
 void Bar<T>()
 where T : class
 {
 }

will fail with: Invalid generic method instantiation of method Bar (generic args don't respect target's constraints) at 0x000c Foo.

This prohibits the use of almost every non-simplistic Generic construct.

Probably unity is infected with this mono bug: https://bugzilla.novell.com/show_bug.cgi?id=660685

Interstingly the generics verification only seems to be activated in the Webplayer. The same code works without complaints in the standard player.

Any ideas how to get this fixed?

Comment
Add comment · Show 5
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 almo · Jun 20, 2011 at 02:46 PM 0
Share

Use the 010101 button to format code.

avatar image Manuk · Jun 20, 2011 at 02:48 PM -1
Share

on my way, currently creating a sample project

avatar image almo Manuk · Jun 20, 2011 at 02:52 PM 2
Share

Excellent. If my answer helped, please click the checkmark by it. And you might delete this answer, and make it a comment under my answer ins$$anonymous$$d.

avatar image Graham-Dunnett ♦♦ Manuk · Jun 20, 2011 at 02:52 PM 4
Share

(this is not an answer)

avatar image Marnix · Jun 20, 2011 at 02:56 PM 0
Share

Sorry, posted a wrong answer. Already deleted it. I thought, hey everything is working fine. But then I read about the webplayer. If this is only happening there, something is definitely wrong with the compiler of Unity. Reporting a bug is a good thing for that.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by almo · Jun 20, 2011 at 02:44 PM

http://answers.unity3d.com/questions/9292/how-do-i-report-a-bug-in-unity.html

Go here to see how to report a bug.

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 valoh · Mar 28, 2012 at 10:11 AM

as I stumbled across the same bug in 3.5:

what's the status of this bug? did you submitted a bug? any feedback on it?

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 HSz · Aug 28, 2014 at 11:45 AM

Is there any update on this? We were able to replicate this in WebPlayer on 4.5.3 http://fogbugz.unity3d.com/default.asp?629308_v05aeen3cr02l8db Thx

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

[Help]Unity3d Webplayer (3.0f5) (Internet Explorer 8) Can`t communicate with the browser . 1 Answer

Unity Web Player Bug. Please help ! 1 Answer

Unity 3D Keep Crashing in every site! 1 Answer

Unity Web Player distorts objects 0 Answers

Unity Web Player - Error when loading for the first time 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