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 evilnya · Sep 06, 2015 at 07:22 PM · webplayerbrowser communicationinternet explorer

WebPlayer UnityObject2.getUnity().SendMessage() method is missed in IE 11

Dom element OBJECT returned by getUnity() not contains SendMessage. How i can use SendMessage in IE?

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 Graham-Dunnett ♦♦ · Nov 04, 2015 at 04:38 PM 0
Share

Hard to know how to help. If your script code is working on Firefox, IE10, but not IE11, then yes, this must be some IE11 issue. I've not heard of people complaining that Unity web player isn't working on IE11. I'll take a quick look.

avatar image evilnya Graham-Dunnett ♦♦ · Nov 05, 2015 at 10:28 AM 0
Share

Thanks for the answer.

In Firefox and Opera all works fine. They Unity webplayer object has method Send$$anonymous$$essage.

Webplayer works in IE but I need some comunication with javascript websocket. And I cant find way to do it without Send$$anonymous$$essage.

I has same case in IE11 and in emulated IE10 mode. I don't yet checked in native IE10.

There is IE console out log (unityInstanse is UnityObject2 instance): alt text

7f333cf28cd4213578f925bafbc6b4b0.png (6.6 kB)

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Schubkraft · Nov 05, 2015 at 02:38 PM

Can you please file a bug report with a minimal repro project and ping me the case number here? Thanks.

Comment
Add comment · Show 9 · 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 jwmickey · Nov 05, 2015 at 04:21 PM 0
Share

We're also having this problem. Where can I file a bug report? I'm on the issue tracker page but don't see how to create an issue.

avatar image jwmickey · Nov 05, 2015 at 04:38 PM 0
Share

Here's a simple test page showing a $$anonymous$$imal unity scene, the plugin status, player version, and the typeof UnityObject2.getUnity().Send$$anonymous$$essage

http://content.whiteboxlearning.com/unity-sendmessage.html

In Firefox, the value is "function", as expected. In IE, the value is "unknown".

avatar image Schubkraft ♦♦ · Nov 05, 2015 at 05:13 PM 0
Share

In the editor Help > Report a bug

avatar image jwmickey Schubkraft ♦♦ · Nov 05, 2015 at 06:15 PM 0
Share

Unfortunately I'm not the Unity programmer - I'm just interacting with the scene using Send$$anonymous$$essage. Does this link suffice for a bug report/test? http://content.whiteboxlearning.com/unity-sendmessage.html

avatar image evilnya jwmickey · Nov 05, 2015 at 06:54 PM 0
Share

I used a bug report in editor to send example project (similar to in you link). Waiting for a callback letter with issue track id.

avatar image evilnya · Nov 05, 2015 at 07:03 PM 0
Share

Here link to case number 742387 with attached $$anonymous$$imal project https://fogbugz.unity3d.com/default.asp?742387_q75tthssndv4edqi

avatar image Schubkraft ♦♦ evilnya · Nov 06, 2015 at 01:24 PM 0
Share

Reproduced it and passed on to the devs. Thanks for the very nice report!

avatar image jwmickey Schubkraft ♦♦ · Nov 17, 2015 at 07:12 PM 0
Share

Has there been any progress on this bug?

avatar image vala_ · Dec 14, 2015 at 09:31 PM 0
Share

There's been a month since the issue was open here : https://fogbugz.unity3d.com/default.asp?742387_q75tthssndv4edqi by @evilnya. @Schubkraft, has been there any progress that you know. This is pretty blocking for us to ship our software for now. Thanks for your answer.

avatar image
0

Answer by jwmickey · Dec 15, 2015 at 08:56 AM

I found that while you can't check for the existence of SendMessage in IE, you can still call the method. It's unfortunate that you can't test for the method, but this may be a limitation of IE and not a UWP bug.

typeof uo.SendMessage; // -> "unknown"

uo.SendMessage("foo"); // -> "Invalid number of parameters"

At least in the second case we get a message from the plugin which was expecting three parameters, indicating that SendMessage is actually working.

Hope this helps!

Comment
Add comment · Show 3 · 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 vala_ · Dec 15, 2015 at 09:02 AM 0
Share

Hi @jwmickey, can you provide us with you IE version please ? Also, do you get you uo object by calling getUnity() on an UnityObject2 instance ? Thanks for the details !

avatar image jwmickey vala_ · Dec 15, 2015 at 02:28 PM 0
Share

I tested in IE11. Yes, the uo var is from getUnity() - poorly named in my example, sorry!

var uo = new UnityObject2();' 'uo.initPlugin($("#unity-container")[0], 'my-game.unity3d');' 'var unity = uo.getUnity();' 'unity.Send$$anonymous$$essage("foo");

avatar image vala_ jwmickey · Dec 15, 2015 at 02:36 PM 0
Share

Ok, no problem thanks.

$$anonymous$$aybe you have an old version of the Unity WebPlayer that works with IE11 ?

Well, since this still doesn't work for me, I found out that I could make IE11 work with WebGL while the WebPlayer is still bugged. This needs some hacks but works pretty good in my case.

Thanks @jwmickey

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

6 People are following this question.

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

Related Questions

Unity Webplayer Game freezes after loading on IE 1 Answer

Internet explorer not working with webplayer 0 Answers

Failed downloading http with WWW on Internet Explorer 0 Answers

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Passing active camera images to browser 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