Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

WebGL error: Unable to find type [UnityEngine.dll]UnityEngine.AssemblyIsEditorAssembly>

Discussion in 'Unity 5 Pre-order Beta' started by sluice, Oct 27, 2014.

  1. sluice

    sluice

    Joined:
    Jan 31, 2014
    Posts:
    416
    As title says, I don't have a problem doing a build (other than it takes forever to build, even on slow optimisation setting).

    But I do get this error when I run it in Firefox (v33.0.1):
    Unable to find type [UnityEngine.dll]UnityEngine.AssemblyIsEditorAssembly>


    What exactly is causing this error?
     
  2. RalphH

    RalphH

    Unity Technologies

    Joined:
    Dec 22, 2011
    Posts:
    592
    It's a missing (stripped) type. It's a bug, but in fact harmless.
     
  3. RalphH

    RalphH

    Unity Technologies

    Joined:
    Dec 22, 2011
    Posts:
    592
    (As for the compile speed, do a development build, with stripping enabled in the playersettings and set it to the highest optimization level).
     
  4. sluice

    sluice

    Joined:
    Jan 31, 2014
    Posts:
    416
    So in theory it should run fine? If in fact it doesn't run fine, it probably has to do with something else on my end?
    I currently get stuck on a white screen after the error pops up.
     
  5. sluice

    sluice

    Joined:
    Jan 31, 2014
    Posts:
    416
    Never mind.. it was an error on my end.. On my first scene I had an intro video using MovieTexture.
    I removed that scene from the build and now it works fine.

    Thanks for the compile speed tips.
     
  6. RalphH

    RalphH

    Unity Technologies

    Joined:
    Dec 22, 2011
    Posts:
    592
    MovieTexture is indeed not available in Unity 5.0 WebGL.
     
  7. sluice

    sluice

    Joined:
    Jan 31, 2014
    Posts:
    416
    Just to make it clear:

    Development build checked with Optimisation Level - Slow (fast builds), right?
    And which Stripping Level: Strip Assemblies, Strip ByteCode or Use micro mscorlib?
     
  8. RalphH

    RalphH

    Unity Technologies

    Joined:
    Dec 22, 2011
    Posts:
    592
    Strip ByteCode will give you engine stripping. IL2CPP always strips, but actual granular stripping of the engine is only done through that level.
     
  9. JordanAird

    JordanAird

    Joined:
    Sep 8, 2014
    Posts:
    5
    Hi there, I am having a similar problem with a project of mine regarding using MovieTexture with WEB GL, after reading this i understand that you cannot use MovieTexture in WEB GL, so what other alternatives can I use as i have a MovieTexture assigned to a plane and this project is an existing demo which we show to clients, but we want to have it available for all people who visit our website to see using WEB GL, there must be a way surely around this or another way for WEBGL to view a video on a plane, if anyone has an answer it would be great? Thanks :)
     
  10. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Currently, your best bet would be to use a html5 video element and to display that on top of your canvas.
     
  11. JordanAird

    JordanAird

    Joined:
    Sep 8, 2014
    Posts:
    5
    Hi jonas thanks for getting back to me so quick, is this the best thing at the moment in Unity 5 is there anything else which is coming up which could be handy? as this is an ongoing project, thanks
     
  12. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    We have no specific plans for video on WebGL yet. I expect that we will have a solution out of the box eventually, but not for 5.0. It would probably be possible to get the current MovieTexture to work in WebGL by decoding the video in JavaScript. However, a video element based solution would be so much more efficient and modern, that it adding MovieTexture support seems kind of backwards in comparison.
     
  13. JordanAird

    JordanAird

    Joined:
    Sep 8, 2014
    Posts:
    5
    Hi jonas, tanks for the useful heads up, i think we will definitely go down the video element side of things when we get our other main issues out the way. Were now having a problem when we run our build outside of our local domain, we keep getting the error which is 'uncaught exception: could not load memory initializer Data/UnityStuff.html.mem' we haven't had any experience with this error before and are struggling to find any examples as unity 5 hasnt even come out yet, if you have any idea as to why this may be we would love to know! Cheers
     
  14. JordanAird

    JordanAird

    Joined:
    Sep 8, 2014
    Posts:
    5
    anyone have a clue/idea as to why this is ?
     
  15. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    It appears that it fails downloading the file Data/UnityStuff.html.mem from the web server. Did you upload it? One possible reason might be that we are incorrectly setting the file access permissions on the "Compressed" folder (which will be fixed in b14), so check those before uploading.
     
  16. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    also some servers (such as IIS) or webhosts with strict settings won't serve unknown extensions or mime types by default
     
  17. JordanAird

    JordanAird

    Joined:
    Sep 8, 2014
    Posts:
    5
    ive added it the .mem to mime types on our server, which has now got rid of the error, however now its not loading the content, the canvas just goes white?
     
  18. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    did you also add .data if it was about extensions?