Wednesday, June 1, 2022
HomeGame DevelopmentThe way to import my JSON file information into JS file -...

The way 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 in a position to 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 possibly can confer with: JSON · Cocos Creator

May you present your demo, and present the ultimate consequence you need?

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

I wish to show the data contained within the JSON file within 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