Flat WorldUI's render to textures. Normal worldUI's are better for performance but flat worldUI's are more flexible. Free/Indie users should use normal WorldUI's instead for performance purposes, however this can still be used. The difference here is the texture can be e.g. applied to a curved surface.
|
| FlatWorldUI () |
| Creates a new Flat World UI with 100x100 pixels of space and a name of "new World UI". The gameobjects origin sits at the middle of the UI by default. See PowerUI.WorldUI.SetOrigin. By default, 100 pixels are 1 world unit. See PowerUI.WorldUI.SetResolution. More...
|
|
| FlatWorldUI (string name) |
| Creates a new Flat World UI with 100x100 pixels of space and the given name. The gameobjects origin sits at the middle of the UI by default. See PowerUI.WorldUI.SetOrigin. By default, 100 pixels are 1 world unit. See PowerUI.WorldUI.SetResolution. More...
|
|
| FlatWorldUI (int widthPX, int heightPX) |
| Creates a new Flat World UI with the given pixels of space and a name of "new World UI". The gameobjects origin sits at the middle of the UI by default. See PowerUI.WorldUI.SetOrigin. By default, 100 pixels are 1 world unit. See PowerUI.WorldUI.SetResolution. More...
|
|
| FlatWorldUI (string name, int widthPX, int heightPX) |
| Creates a new Flat World UI with the given pixels of space and a given name. The gameobjects origin sits at the middle of the UI by default. See PowerUI.WorldUI.SetOrigin. By default, 100 pixels are 1 world unit. See PowerUI.WorldUI.SetResolution. More...
|
|
override void | RenderWithCamera (int layer) |
| Puts all batches of this renderer into the given unity layer. More...
|
|
void | SetCameraDistance (float distance) |
| Sets the distance of the camera, essentially defining the amount of z-index available. More...
|
|
override void | SetDimensions (int x, int y) |
| Sets how many pixels of space this renderer has. The actual world space size is dictated by this and PowerUI.WorldUI.SetResolution. The amount of pixels and pixels per world unit (resolution). More...
|
|
void | MouseMovedTo (int x, int y) |
|
void | MouseDown (int x, int y) |
|
void | MouseUp (int x, int y) |
|
| WorldUI () |
| Creates a new World UI with 100x100 pixels of space and a name of "new World UI". The gameobjects origin sits at the middle of the UI by default. See PowerUI.WorldUI.SetOrigin. By default, 100 pixels are 1 world unit. See PowerUI.WorldUI.SetResolution. More...
|
|
| WorldUI (string name) |
| Creates a new World UI with 100x100 pixels of space and the given name. The gameobjects origin sits at the middle of the UI by default. See PowerUI.WorldUI.SetOrigin. By default, 100 pixels are 1 world unit. See PowerUI.WorldUI.SetResolution. More...
|
|
| WorldUI (int widthPX, int heightPX) |
| Creates a new World UI with the given pixels of space and a name of "new World UI". The gameobjects origin sits at the middle of the UI by default. See PowerUI.WorldUI.SetOrigin. By default, 100 pixels are 1 world unit. See PowerUI.WorldUI.SetResolution. More...
|
|
| WorldUI (string name, int widthPX, int heightPX) |
| Creates a new World UI with the given pixels of space and a given name. The gameobjects origin sits at the middle of the UI by default. See PowerUI.WorldUI.SetOrigin. By default, 100 pixels are 1 world unit. See PowerUI.WorldUI.SetResolution. More...
|
|
void | CameraChanged () |
| Call this if you change the field of view of the camera looking at a pixel perfect WorldUI. More...
|
|
void | UpdateResolution () |
| Flushes resolution changes. Use this after a set resolution method if you want to see your changes on the next update. Note that this is not needed when you've just created your WorldUI or if you're also changing any innerHTML or styles at the same time. Internally this just generates a layout request. More...
|
|
void | SetInputMode (InputMode mode) |
| Called when the input mode changes. This makes sure all active batches are set to the correct mode (i.e. physics or screen). Default is None. More...
|
|
void | SetDepthResolution (float gaps) |
| Sets how many world units are used between elements at different depths. Default is 0.01. You'll generally want this to be as small as possible to make the UI appear flat. Too small though and you'll get z-fighting. You can also use large values if you want to achieve a unique effect. More...
|
|
void | SetResolution (int ppw) |
| Sets how many Pixels Per World unit this renderer uses. Maps directly to applying a scale. Default is 100. The actual world space size is dictated by this and PowerUI.WorldUI.SetDimensions. The amount of pixels and pixels per world unit (resolution). More...
|
|
void | SetResolution (float ppw) |
| Sets how many Pixels Per World unit this renderer uses. Maps directly to applying a scale. Default is 100. The actual world space size is dictated by this and PowerUI.WorldUI.SetDimensions. The amount of pixels and pixels per world unit (resolution). More...
|
|
void | SetResolution (int ppwW, int ppwH) |
| Sets how many Pixels Per World unit this renderer uses, allowing for distortion. Maps directly to applying a scale. Default is 100 on each axis. The actual world space size is dictated by this and PowerUI.WorldUI.SetDimensions. The amount of pixels and pixels per world unit (resolution). More...
|
|
void | SetOrigin (float x, float y) |
| Sets the location of the gameobjects origin relatively. More...
|
|
void | FaceCamera (Camera cameraToFace) |
| Makes this UI always face the given camera. More...
|
|
void | FaceCamera () |
| Makes this UI face the main camera until told to stop. Note that this only needs to be called once. More...
|
|
void | StopFacingCamera () |
| Stops making this UI face a camera. More...
|
|
void | Update () |
| Updates this UI. Called internally by UI.Update. More...
|
|
void | ParentToOrigin (Transform parent) |
| Parents this WorldUI to the given gameobject and then moves it to the transforms origin. More...
|
|
void | ParentToOrigin (GameObject parent) |
| Parents this WorldUI to the given gameobject and then moves it to the gameobjects origin. More...
|
|
void | GotoLocalOrigin () |
| Moves this world UI so it's at the origin of it's parents transform. More...
|
|
void | Expire () |
| Expires this WorldUI now. More...
|
|
void | CancelExpiry () |
| Cancels a pending expiry. More...
|
|
void | SetExpiry (float expiry) |
| Sets an expiry time for this WorldUI. It will be destroyed in this many seconds. More...
|
|
void | Destroy () |
| Destroys this UI. Note that this also occurs if the gameobject is destroyed; Just destroying the gameobject or a parent gameObject is all that is required. More...
|
|