I’m in search of a property or getter that may return the undertaking 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 by way of <%= projectName %> macro. Is there a solution to get this identical 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 as a result of completely different construct templates current and this being simply changeable.
What platform are you making an attempt to get the identify of the undertaking beneath?
I constructed the web-mobile undertaking with CocosCreator 3.6.0, with the undertaking identify within the title tag.
Presently, the CocosCreator engine doesn’t report the person’s undertaking identify, so there isn’t any solution to question it by way of the engine API. You possibly can solely entry the title tag attribute and resolve the undertaking identify your self.
I see, I hoped to keep away from that however I suppose it must do for now. Thanks for the response.