Thursday, June 2, 2022
HomeGame DevelopmentEasy methods to import my JSON file information into JS file -...

Easy methods to import my JSON file information into JS file – Cocos Creator


Hello guys
I’ve a priority I wish to make a drop-down menu that may show the record of nation indicators. I’ve a JSON file with all the indications, their flags and names of every nation, I used to be capable of make the dropdown menu and I wish to show the information contained within the JSON file in my dropdown menu.

Right here is my .JSON file

Right here is my file in JS the place I create the choice in my dropdown menu

Thanks upfront please assist me


you may discuss with: JSON · Cocos Creator

May you present your demo, and present the ultimate end result you need?

In a logic that I wish to make a drop-down menu to show and make a selection on the international locations for the participant, right here it’s

I wish to show the data contained within the JSON file within the Dropdown Menu

You may discuss with doc i metioned earlier than to get JSON information from JSON file , then to set information to the Dropdown Menu.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments