Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Application.LoadLevel() suddenly not working on Andriod

Discussion in 'Editor & General Support' started by ConsidraGames, Jul 17, 2014.

  1. ConsidraGames

    ConsidraGames

    Joined:
    Dec 7, 2013
    Posts:
    10
    Hi unfortunately i can't give much more specific details on how this happened. I ended up changing the product name and company in the player settings(the only thing that changed between when it did and didn't work) and after that, none of the Application.LoadLevel() functions work. I'm clicking on the GUI button in bluestacks Andriod Simulator. but nothing.


    void onGUI
    {
    if (GUI.Button (new Rect (128, 96, 200, 70), maingamebutton, mgb)) {
    loadcertainlevel("levelselectscene");
    }
    }

    void loadcertainlevel(string thelevel)
    {
    Application.LoadLevel (thelevel);
    }

    Thanks in advance.
     
  2. ConsidraGames

    ConsidraGames

    Joined:
    Dec 7, 2013
    Posts:
    10
    Never mind i found out what it was.
    I must have clicked on "Split Application Binary" in the player settings at some point.
    It works now.