![Get undertaking title at runtime in 3.x – Cocos Creator Get undertaking title at runtime in 3.x – Cocos Creator](https://thefuntrove.com/wp-content/uploads/https://discuss.cocos2d-x.org/uploads/default/original/3X/c/9/c9a024cd3656916ac85bb3a01034f8075bc8f827.png)
[ad_1]
I’m on the lookout for a property or getter that may return the undertaking 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 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 similar worth within the recreation’s supply code throughout runtime?
I’d fairly not attempt to parse this title tag for it as a result of it’s not dependable sufficient attributable to totally different construct templates present and this being simply changeable.
What platform are you attempting to get the title of the undertaking underneath?
I constructed the web-mobile undertaking with CocosCreator 3.6.0, with the undertaking title within the title tag.
Currently, the CocosCreator engine doesn’t file the person’s undertaking title, so there isn’t a solution to question it by the engine API. You can solely entry the title tag attribute and resolve the undertaking title 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]