Monday, September 5, 2022
HomeGame DevelopmentCross scenes by construct parameter on command line construct - Cocos Creator

Cross scenes by construct parameter on command line construct – Cocos Creator


Hello,

I’m attempting to implement a CI/CD with Jenkins on my challenge with Cocos Creator 3.4.1
To date, it’s working however for some challenge needings I’ve to create a number of builds with differents scenes so I must go them by paramenter.

Cocos itself permits this with the “scenes” construct parameter, however I can’t get it working.
I’ve tried totally different codecs however I all the time get the identical error and Cocos builds all scenes:

scene xxx is invalid. will use the brand new worth [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

To be sincere, the documentation web page doesn’t assist a lot:
https://docs.cocos.com/creator/guide/en/editor/publish/publish-in-command-line.html

Does anybody know what format ought to the scenes parameter have?

To date i’ve tried:
scenes=[{“url”:“db://assets/SceneA.scene”,“uuid”:“xxx”,“inBundle”:false},{“url”:“db://assets/sceneB.scene”,“uuid”:“xxx”}…]

scenes=[[{“url”:“db://assets/SceneA.scene”,“uuid”:“xxx”,“inBundle”:false}],[{“url”:“db://assets/sceneB.scene”,“uuid”:“xxx”}…]]

scenes=xxx,xxx,xxx (UUIDs)

scenes=[xxx,xxx,xxx] (UUIDs)

Thanks!


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments