I’m on the lookout for a property or getter that can return the mission 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 technique to get this identical worth within the sport’s supply code throughout runtime?
I’d moderately not attempt to parse this title tag for it as a result of it’s not dependable sufficient as a consequence of totally different construct templates current and this being simply changeable.
What platform are you attempting to get the identify of the mission below?
I constructed the web-mobile mission with CocosCreator 3.6.0, with the mission identify within the title tag.
Presently, the CocosCreator engine doesn’t file the person’s mission identify, so there is no such thing as a technique to question it by the engine API. You may solely entry the title tag attribute and resolve the mission identify your self.
I see, I hoped to keep away from that however I suppose it must do for now. Thanks for the response.