Unity5 WebGL support

0 votes

Hello,

Unity5 is out and I have 2 questions:

1) Is App42 and AppWarp certified to work on this new version? If not, what platforms on Unity5 are working as of today (iOS, Android, Desktop - Windows/Linux/Mac, Web and WebGL)?

2) I tried to generate a WebGL build and got this error:

Failed running /Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out "/Users/ramcor/Documents/DreamlikeCharts/DLCharts/Temp/StagingArea/Data/Managed" -l none -c link -x "/Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/native_link.xml" -f "/Applications/Unity/Unity.app/Contents/Frameworks/il2cpp/LinkerDescriptors" -x "/Users/ramcor/Documents/DreamlikeCharts/DLCharts/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -d "/Users/ramcor/Documents/DreamlikeCharts/DLCharts/Temp/StagingArea/Data/Managed" -a  "/Users/ramcor/Documents/DreamlikeCharts/DLCharts/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a  "/Users/ramcor/Documents/DreamlikeCharts/DLCharts/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a  "/Users/ramcor/Documents/DreamlikeCharts/DLCharts/Temp/StagingArea/Data/Managed/App42_Unity3D_SDK_3.1.2.dll" -a  "/Users/ramcor/Documents/DreamlikeCharts/DLCharts/Temp/StagingArea/Data/Managed/AppWarpUnity.dll" -a  "/Users/ramcor/Documents/DreamlikeCharts/DLCharts/Temp/StagingArea/Data/Managed/SampleClassLibrary.dll"

 
stdout:
Fatal error in Mono CIL Linker
System.Exception: Error processing method: 'System.Void com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW::ExecuteMultipart(System.String,System.String,System.Collections.Generic.Dictionary`2<System.String,System.String>,System.Collections.Generic.Dictionary`2<System.String,System.String>,System.Collections.Generic.Dictionary`2<System.String,System.String>,System.String,System.String,com.shephertz.app42.paas.sdk.csharp.App42CallBack)' in assembly: 'App42_Unity3D_SDK_3.1.2.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Collections.Hashtable UnityEngine.WWWForm::get_headers()
  at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference) [0x00000] in <filename unknown>:0 
  at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction) [0x00000] in <filename unknown>:0 
  at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00000] in <filename unknown>:0 
  at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00000] in <filename unknown>:0 
  at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in <filename unknown>:0 
  at Mono.Linker.Steps.MarkStep.Process () [0x00000] in <filename unknown>:0 
  at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0 
  at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0 
  at Mono.Linker.Driver.Run () [0x00000] in <filename unknown>:0 
  at Mono.Linker.Driver.RunDriver (Mono.Linker.Driver driver) [0x00000] in <filename unknown>:0 
stderr:
 
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:66)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:192)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String, String&, String&, String, String, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:185)
UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:136)
UnityEditorInternal.AssemblyStripper:Strip(String[], String[], String, String, String&, String&, String, String, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:121)
UnityEditorInternal.IL2CPPBuilder:RunAssemblyStripper(IEnumerable, String, String[], String[], String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:431)
UnityEditorInternal.IL2CPPBuilder:StripAssemblies(String[], String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:419)
UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:273)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218)
UnityEditor.HostView:OnGUI()
 
Does it mean WebGL is not supported (yet, I hope) ?
 
asked Mar 5, 2015 in App42 Cloud API-BaaS by ramiro (22 points)

1 Answer

0 votes

Hello Ramiro,

 
As of now, App42 SDK is not supported on webGL through Unity. Underlying reason is that there are some issue in implementing HTTP on this build from Unity side. 
We are closing looking for the fix and will update you as soon as it is available.
 
Thanks,
Himanshu Sharma

 

answered Mar 6, 2015 by hs00105 (2,005 points)
Supporting WebGL is critical for my project. Did you fill a bug with Unity? Can you provide me the link to the bug report so I can bump it at Unity forums? Thanks.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...