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

Having trouble setting UI Button position in script after 4.6 20 update

Discussion in 'Immediate Mode GUI (IMGUI)' started by technicalfiction, Oct 16, 2014.

  1. technicalfiction

    technicalfiction

    Joined:
    Jan 31, 2014
    Posts:
    12
    Screen Shot 2014-10-16 at 7.24.52 AM.png

    I have a Boggle-like interface where you select words by clicking on buttons, and the Method "Activate" was working fine, it sets the position of each word as a button. But then I updated to the most recent version of 4.6, and transform.localPosition on line 24 seems to not be working. All the math is fine, but I cannot access the button's position. All of the buttons are just clumped up in the same spot they are in the scene view before runtime.

    Can anyone clue me in as to how to set a Button's position in version 20?

    Thanks