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. Dismiss Notice

popup window

Discussion in 'Scripting' started by astraalii, Jul 5, 2018.

  1. astraalii

    astraalii

    Joined:
    Jan 24, 2017
    Posts:
    4
    Hey so i made a login system for my smartfox server implementation.
    Im new to unity (not in coding). I would like to design nice rpg style windows with centered text?

    My connector class has function called showpopup.
    Connector class has many functions that send send strings to showpopup("Disconnected) (wrong username/password, timetout ect.

    I just cant get around using unity yet. How i can show panel with custom text only when needed with close button.
     
  2. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    I would say just have a panel with some text centred. Then, just set the text when needed and set the panel active/inactive when needed. A close button could just be an imagine, that when clicked, closes the panel (sets it inactive).

    Have you looked here? https://unity3d.com/learn/tutorials/s/user-interface-ui

    Was there something more specific that you meant that I didn't address?
     
  3. astraalii

    astraalii

    Joined:
    Jan 24, 2017
    Posts:
    4
    I have panel ready? But how i get access to panel in code? Change visibility ect text.

    Import my component and edit properties.
     
  4. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712