Saturday, September 24, 2022
HomeGame DevelopmentGet challenge title at runtime in 3.x - Cocos Creator

Get challenge title at runtime in 3.x – Cocos Creator


I’m searching for a property or getter that can return the challenge title at runtime, however I’ve not been capable of finding one but. Does one exist and I’m simply lacking it? Or is there one other manner I can get this worth?

For instance, within the web-mobile construct template’s index.ejs the title tag is populated through <%= projectName %> macro. Is there a solution to get this similar worth within the recreation’s supply code throughout runtime?

I’d reasonably not attempt to parse this title tag for it as a result of it’s not dependable sufficient as a result of completely different construct templates present and this being simply changeable.


What platform are you attempting to get the title of the challenge beneath?

I constructed the web-mobile challenge with CocosCreator 3.6.0, with the challenge title within the title tag.
Presently, the CocosCreator engine doesn’t document the person’s challenge title, so there isn’t a solution to question it by the engine API. You’ll be able to solely entry the title tag attribute and resolve the challenge title your self.

I see, I hoped to keep away from that however I suppose it must do for now. Thanks for the response.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments