The NGUtil type exposes the following members.
Back to Top
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.
|
See Also