The NGUtil type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| NGUtil |
Methods
| Name | Description | |
|---|---|---|
| AreEqual(IList, IList) |
Compares two lists and returns true, if all items are equal.
| |
| AreEqual(AnimationCurve, AnimationCurve) |
Compares two animation curves and returns true, if their keys
are equal.
| |
| EaseOnCurve(AnimationCurve, Single, Single, Single) | Obsolete.
Obsolete - use
EaseOnCurve(AnimationCurve, Single, Single, Single)
instead!
| |
| EaseOnCurve(AnimationCurve, Color, Color, Single) | Obsolete.
Obsolete - use
EaseOnCurve(AnimationCurve, Color, Color, Single)
instead!
| |
| EaseOnCurve(AnimationCurve, Vector3, Vector3, Single) | Obsolete.
Obsolete - use
EaseOnCurve(AnimationCurve, Vector3, Vector3, Single)
instead!
| |
| IsRendererVisibleFrom |
Tests if a given renderer is visible from a specific camera.
| |
| LoadAsset T |
Tries to load an asset of type T from path.
| |
| Scale(Single) |
Automatically scales your pixel definitions for widths, heights
or relative screen positions for high density (e.g. Retina)
displays. This either returns pixels, as it is, or
pixels * 2 if we have a high density display.
| |
| Scale(Vector2) |
Automatically scales your pixel definitions for widths, heights
or relative screen positions for high density (e.g. Retina)
displays. This either returns pixels, as it is, or
pixels * 2 if we have a high density display.
| |
| ScaleInverse(Single) |
Inverts the scale applied via Scale(Single). This
is useful if you're grabbing dimensions from objects while we
are in high density mode.
| |
| ScaleInverse(Vector2) |
Inverts the scale applied via Scale(Single). This
is useful if you're grabbing dimensions from objects while we
are in high density mode.
| |
| ScaleOnlySize |
Automatically scales only the width and height of a rectangle for
high density (e.g. Retina). This is useful for rectangles that
already have a correct position but the wrong dimensions.
Use with caution! ;-)
| |
| ToReadableDiff |
Creates a user readable diff between two objects of same type.
Currently implements special handling for: IList (arrays and lists)
and AnimationCurve.
| |
| ToReadableString |
Tries to put a into a readable form, if ToString fails
to do so.
|
Fields
| Name | Description | |
|---|---|---|
| ForceHighDensity |
Set this to true for testing high density screen layouts etc.
If this is true, IsHighDensityDisplay always returns
true regardless of whether we actually have a high density
display. This is useful to test high density GUI layouts in
the editor (which never has a Retina display ;-) ).
|
Properties
| Name | Description | |
|---|---|---|
| IsHighDensityDisplay |
Are we on a high density screen (e.g. Retina display)?
| |
| IsPortrait |
Returns true, if according to Screen.width and Screen.height, we
are in portrait mode; and false, if we are more likely in
landscape mode (according to Screen.width and Screen.height). A square
screen will return false (we define square as "still landscape" ;-) ).
|
See Also