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

OpenGUI: Open source GUI framework for Unity

Discussion in 'Works In Progress - Archive' started by mrzapp, May 26, 2013.

  1. mrzapp

    mrzapp

    Joined:
    May 26, 2013
    Posts:
    137
    Ok, try a wider spread, like 0, 5, 10, 15.
     
  2. Affy

    Affy

    Joined:
    Aug 19, 2014
    Posts:
    13
    It's not working >.<
     
  3. mrzapp

    mrzapp

    Joined:
    May 26, 2013
    Posts:
    137
    Dangit. I'm not sure why you are experiencing this, I can't seem to reproduce it. I'll have to get back to you on that. In the meantime, try 0, 20, 40, 60, I have a suspicion that might work
     
  4. odel lincoln

    odel lincoln

    Joined:
    Sep 8, 2014
    Posts:
    1
    Hi .. will this OpenGUI Creator work with mobile Android iOS ?
     
  5. mrzapp

    mrzapp

    Joined:
    May 26, 2013
    Posts:
    137
    Yes. I am not developing a mobile game myself, but several people here are.
     
  6. Affy

    Affy

    Joined:
    Aug 19, 2014
    Posts:
    13
    I'm programmatically creating OGButtons etc, but they aren't being drawn. If I start the game and then go into the hierarchy view and select the button, then suddenly it is being drawn :S

    Edit: My previous issue regarding the empty gameobjects are parents wasn't actually a problem.

    I was able to fix my issue by calling the Recalculate method on the widgets when I create them.
     
    Last edited: Sep 12, 2014
  7. mrzapp

    mrzapp

    Joined:
    May 26, 2013
    Posts:
    137
    I arrange OGWidgets under empty GameObjects all the time. Are you sure the GameObject you're using is scaled to 1x1x1? That's usually the mixup.
     
  8. Affy

    Affy

    Joined:
    Aug 19, 2014
    Posts:
    13
    Is there a way to have certain widgets be positioned relative to another widget instead of relative to the screen?
     
  9. mrzapp

    mrzapp

    Joined:
    May 26, 2013
    Posts:
    137
    You have to call OGWidget::ApplyDefaultStyles(), it's in the docs.

    Relative positioning of widgets in relation to one another is not implemented, but that shouldn't be a problem if you're creating them programmatically anyway.