Sunday, February 25, 2024
HomeGame DevelopmentThe way to use gif or animation for splash display - Cocos...

The way to use gif or animation for splash display – Cocos Creator


I construct venture utilizing build-templates with ejs file. I modified the loading picture by altering url in settings/v2/packages/builder.json:

{
   "splash-setting": {
     "url": "venture://belongings/Texture/loading.png",
     "clearColor": {
       "x": 1,
       "y": 1,
       "z": 1,
       "w": 1
     },
     "displayWatermark": false,
     "totalTime": 2000
   }
}

Nonetheless this doesn’t work if I take advantage of a gif file.
My ver: 3.6.1


Gif will not be supported by the engine, so at the moment we solely assist picture splash display

If you wish to use gifs in your tasks, the assist group has choices

However at the moment the splash display will not be supported

Right here’s how we do:

Simply use a nonetheless picture or disable built-in splash.
Then, load a traditional scene (for us, we made the transaction from built-in splash picture to our scene clean) with animation as a loader/splash.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments

Arnavsijapati on Planet of Lana – Beta Demo
Jai Kishor Upadhyay on Planet of Lana – Beta Demo