Search Unity

Automating Scene Creation using scripts and elements from a database or a file.

Discussion in 'Scripting' started by sudhaMR, Jun 17, 2015.

  1. sudhaMR

    sudhaMR

    Joined:
    Jun 17, 2015
    Posts:
    12
    I am making an app that acts as a digital picture book.
    Scene 1: I have tiles with names of animals on it.
    Scene 2: User taps on an animal and gets directed to that animal's page.
    Each animal is on one scene. (Scene 2,3,4...).
    For each scene, I add buttons to the UI. Add an OnClick() event, add AudioSource etc.
    But each scene is going to have the same format. Just the names of animal is going to differ.

    I am using UI to place the buttons and images for all scenes. I have attached screenshots of the app.

    Now, it is getting extremely monotonous and time-consuming to create each scene one by one. I plan to get data of each animal (A picture, few sounds and little text) in a database or a file. This might be done by extracting information from Wiktionary. I want to use this data to automatically generate scenes for all animals using a script.

    Will this be possible? Anyone has any ideas on how this can be implemented? Are there any APIs?
     

    Attached Files: