[ad_1]
I’m in search of a property or getter that can return the challenge identify 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 method 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 strategy to get this similar worth within the recreation’s supply code throughout runtime?
I’d somewhat not attempt to parse this title tag for it as a result of it’s not dependable sufficient because of completely different construct templates present and this being simply changeable.
What platform are you making an attempt to get the identify of the challenge underneath?
I constructed the web-mobile challenge with CocosCreator 3.6.0, with the challenge identify within the title tag.
Currently, the CocosCreator engine doesn’t document the consumer’s challenge identify, so there isn’t a strategy to question it by the engine API. You can solely entry the title tag attribute and resolve the challenge identify your self.
I see, I hoped to keep away from that however I suppose it should do for now. Thank you for the response.
[ad_2]