Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Button

Discussion in 'General Discussion' started by inflame, Mar 26, 2015.

  1. inflame

    inflame

    Joined:
    Jul 31, 2014
    Posts:
    24
    help convert button. It is necessary to make a separate login button. but now when you click on the name of the character comes into play.

    Code (CSharp):
    1. if(GUILayout.Button(player.Name)){
    2.                                 SendSelectedPlayer(player.Name);
    3.                                 UnregisterSFSSceneCallbacks();
    4.                                 Application.LoadLevel("game");
    5.                         }
     
  2. inflame

    inflame

    Joined:
    Jul 31, 2014
    Posts:
    24
    needs to be done as a separate button on the photo Enter the game/
     
  3. inflame

    inflame

    Joined:
    Jul 31, 2014
    Posts:
    24
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    You are probably better off trying in the scripting section. Or better yet the UI section.
     
  5. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    Move the loadlevel line to another button code you made, but anyways like been said:

    "General Discussion
    This is NOT a support forum, for technical help post in the correct forum. Chat about Unity & game development."