Hi, I’m making an interface for my game. But I can’t get my GUI Button in right height position. When I change aspect, It in another position. I’ve tried everything I know to fix that but it doesn’t work. Any idea???
Here my code
or declare public variables and set button position in Inspector panel:
public var buttonLocation : Vector2; /// This valiable will be visible in Inspector panel
public var buttonSize : Vector2; /// This valiable will be visible in Inspector panel
...
GUI.RepeatButton(Rect(buttonLocation.x ,buttonLocation.y ,buttonSize.x ,buttonSize.y), rotateLeftTexture);