8000 Pivot · unity3d-open-tools/opengui Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Jeppe Zapp edited this page Feb 13, 2014 · 1 revision

Sets the pivot of widgets

Variables

Variable Type
x RelativeX Pivot on the x-axis
y RelativeY Pivot on the y-axis

Example

// UnityScript
var btn : OGButton;

function Start () {
   // This widget should be centered
   btn.pivot.x = RelativeX.Center;
   btn.pivot.y = RelativeY.Center;
}
// C#
OGButton btn;

void Start () {
   // This widget should be centered
   btn.pivot.x = RelativeX.Center;
   btn.pivot.y = RelativeY.Center;
}
Clone this wiki locally
0