NGUtil MethodsScoreFlash API Documentation V4.6.0
The NGUtil type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAreEqual(IList, IList)
Compares two lists and returns true, if all items are equal.
Public methodStatic memberAreEqual(AnimationCurve, AnimationCurve)
Compares two animation curves and returns true, if their keys are equal.
Public methodStatic memberEaseOnCurve(AnimationCurve, Single, Single, Single)Obsolete.
Public methodStatic memberEaseOnCurve(AnimationCurve, Color, Color, Single)Obsolete.
Public methodStatic memberEaseOnCurve(AnimationCurve, Vector3, Vector3, Single)Obsolete.
Public methodStatic memberIsRendererVisibleFrom
Tests if a given renderer is visible from a specific camera.
Public methodStatic memberLoadAsset T 
Tries to load an asset of type T from path.
Public methodStatic memberScale(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.
Public methodStatic memberScale(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.
Public methodStatic memberScaleInverse(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.
Public methodStatic memberScaleInverse(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.
Public methodStatic memberScaleOnlySize
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! ;-)
Public methodStatic memberToReadableDiff
Creates a user readable diff between two objects of same type. Currently implements special handling for: IList (arrays and lists) and AnimationCurve.
Public methodStatic memberToReadableString
Tries to put a into a readable form, if ToString fails to do so.
Back to Top
See Also