NGUtil MembersScoreFlash API Documentation V4.6.0

The NGUtil type exposes the following members.
Constructors

  NameDescription
Public methodNGUtil
Back to Top
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
Fields

  NameDescription
Public fieldStatic memberForceHighDensity
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 ;-) ).
Back to Top
Properties

  NameDescription
Public propertyStatic memberIsHighDensityDisplay
Are we on a high density screen (e.g. Retina display)?
Public propertyStatic memberIsPortrait
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" ;-) ).
Back to Top
See Also