Tag Archives: Webgl

[Solved] Unity Publish WebGL Error: Unable to parse Build/webTest2.framework.js.gz

For H5 projects published directly, http-server or anywhere -p

When you open it at this time, you will find that the page is as follows:

Solution: PlayerSetting->Player->Publishing Setting

Check DecomPression Fallback

It can work normally after being released at this time, but it is not full screen:

In the released H5 project, edit index.html file

Directly modify the style of canvas:

<canvas id="unity-canvas" style="width: 100%; height: 100%; background: #231F20"></canvas>

Or insert code in <Script> :

  var canvas = document.getElementById("#unity-canvas");
    canvas.height = document.documentElement.clientHeight;
    canvas.width = document.documentElement.clientWidth;

This can solve the problem, but it is troublesome to modify it manually after each release. Later, we will study the automatic processing during release.

Or there are other full-screen settings.

The SuperMap webgl browser reported an error. The unzip.wasm file 404

The browser reports an error unzip.wasm file 404, which is a decompressed file for two reasons: 1. The file is lost during packaging and needs to be replaced again; 2. The gateway filters out files with the suffix of. Wasm format. You need to add this type to mime, fill in. * in the column of file extension, and in the following MIME type application/octet stream, (most of the problems belong to the latter)

Create game scene in unity_ Creating a beat em up game in unity

Create game scenes in Unity
Learn how to use Unity to create a 3D Beat Em Up game in this full tutorial from Awesome Tuts.
Learn how to create a 3D Beat Em Up game using Unity in the full tutorial on Awesome Tuts.
This tutorial covers everything you need to know to make a basic Beat Em Up game. You are even provided the 3D assets!
This tutorial covers everything you need to know to make a basic Beat Em Up game. You even get a 3D resource!
Here are the topics covered in the course:
The following topics are covered in this course:
According to the Animations, it is important to create a single Character Animation Script so that the players can’t Attack the shaping of Our Player To detect And deal with Damage to Character Animation Delegate Script, The Enemy Movement Script is configured to create Player Attack Points For Detecting And Dealing Damage to The Health Script Create healthy Script Knocking Down Enemy With Combos use combination Down Enemy Adding Sound FX In The Game In The Game To add Sound effects Camera Shake FX Camera vibration effect Enemy Attack Points And ‘Dealing Damage To Player attacking Enemy And The Enemy To The harm of The Player Manager Manager Script Script The Enemy Displaying the Health Stats With the UI using the UI display Health status
You can watch the full video on the freeCodeCamp.org YouTube Channel (4.5 Hour Watch).
You can watch the full video (4.5 hours) on the freeCodeCamp.org YouTube channel.

Translated from: https://www.freecodecamp.org/news/create-a-beat-em-up-game-in-unity/

Create game scenes in Unity

The reasons for the following errors occurred when opening the webgl project of unity

Two days ago, I tried to export the webGL project of U3D. I opened it with Firefox browser, but it could not be opened. The following error occurred:

An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:

uncaught exception: abort(-1) at jsStackTrace@blob:null/21b3ccc8-02d9-4b14-ad3b-21e2001b487a:1:22814

stackTrace@blob:null/21b3ccc8-02d9-4b14-ad3b-21e2001b487a:1:22997

abort@blob:null/21b3ccc8-02d9-4b14-ad3b-21e2001b487a:29:48759

__Z26RegisterClass_MovieTexturev [RegisterClass_MovieTexture()]@blob:null/21b3ccc8-02d9-4b14-ad3b-21e2001b487a:1:320476

zqi@blob:null/ee7e2c84-6036-4343-adae-3353ad18a087:22:1

mAb@blob:null/ee7e2c84-6036-4343-adae-3353ad18a087:10:1

Wyb@blob:null/ee7e2c84-6036-4343-adae-3353ad18a087:10:1

xJc@blob:null/ee7e2c84-6036-4343-adae-3353ad18a087:15:1

callMain@blob:null/21b3ccc8-02d9-4b14-ad3b-21e2001b487a:29:46880

doRun@blob:null/21b3ccc8-02d9-4b14-ad3b-21e2001b487a:29:47707

run/< @blob:null/21b3ccc8-02d9-4b14-ad3b-21e2001b487a:29:47875

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

I thought some Settings of webGL or Firefox might have been modified by accident, but they still can’t be reinstalled. There is no same answer on the Internet, and the q&A is all over the UK, which makes me die.

Later looked at the mistake carefully, suddenly found the key sentence! ___registerclass_movietexturev [RegisterClass_MovieTexture()] @BLOB: NULL/21B3CCC8-02D9-4B14-ad3B-21E2001B487A :1:320476. So movieTexture is a little bit familiar. If I go back to my project, I find a folder called MovieTexture that contains a few.mp4 video files. Delete all the videos in it, export it again, open it normally, solve it successfully!

Conclusion:
1. This time, it may be because webGL cannot recognize the video files, so it can be solved by deleting all the video files in the project.
2. The problem is with the error message, so take a look at that and if you find a sentence that’s most relevant to your project, that should be the one that makes the error, like my project movieTexture.

Node error: spawn eacces

@ XXX XXX – All – Series: ~/projects/mobile/mobile/hiteplay $ gulp serve
[13:22:16] Using gulpfile ~/projects/mobile/mobile/hiteplay/gulpfile js
[13:22:16] Starting ‘scripts’…

/home/XXX/projects/mobile/mobile/hiteplay/SRC/app/main/main controller. The js
line 7 col 6 This character may get silently does by one or More browsers.
line 8 col 23 ‘mainctrl was 2 before it was defined.

2 warnings

/home/XXX/projects/mobile/mobile/hiteplay/SRC/app/services/ExampleService js
line 30 col 11 ‘the console is not defined.
line 33 col 11 ‘the console is not defined.

2 warnings

/home/XXX/projects/mobile/mobile/hiteplay/SRC/app/Settings/settingsController js
line 13 col 48 ‘$scope is defined but never informs.

1 warning

[13:22:16] all files 5.39 kB
[13:22:16] Finished ‘scripts’ after 234 ms
[13:22:16] Starting ‘inject’…
[13:22:16] gulp-inject 1 files into index.html.
[13:22:16] gulp-inject 13 files into index.html.
[13:22:16] Finished ‘inject’ after 129 ms
[13:22:16] Starting ‘watch’…
[13:22:17] Finished ‘watch’ after 19 ms
[13:22:17] Starting ‘serve’…
[13:22:17] Finished ‘serve’ after 18 ms
[BS] [BrowserSync SPA] Running…
(BS) Access URLs:
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
Local: http://localhost:3000/
External: http://192.168.5.136:3000/
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
UI: http://localhost:3001
External UI: http://192.168.5.136:3001
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
(BS) Serving files from: .tmp/serve
[BS] Serving files from: SRC
child_process.js:1162
throw errnoException(err, ‘spawn’);
^
the Error: Spawn EACCES
at exports. _errnoException (util. Js: 746:11)
at ChildProcess. Spawn (child_process. Js: 1162:11)
at the Object. Exports. The spawn (child_process. Js: 995:9)
at the module. The exports (/ home/XXX/projects/mobile/mobile/hiteplay/node_modules/browser – sync/node_modules/opn/index, js: 58:24)
at the Object. The utils. Open (/ home/XXX/projects/mobile/mobile/hiteplay/node_modules/browser – sync/lib/utils. Js: 227-9)
at the Object. The utils. OpenBrowser (/ home/XXX/projects/mobile/mobile/hiteplay/node_modules/browser – sync/lib/utils. Js: 217-23)
at EventEmitter. Events. Service: running (/ home/XXX/projects/mobile/mobile/hiteplay/node_modules/browser – sync/lib/internal – events. Js:) it is
at EventEmitter. Emit (events. Js: 129:20)
at/home/XXX/projects/mobile/mobile/hiteplay/node_modules/browser – sync/lib/browser – sync. Js: 244:19
the at/home/XXX/projects/mobile/mobile/hiteplay/node_modules/browser – sync/node_modules/async for-each – series/index. Js: double-break

access problem solution: sudo chmod + x a hiteplay

Sudo Chmod-r a+ RW/samples-Generator has personally tested the correct 1/2/18