Home › Page › UghSurfaceHint

UghSurfaceHint

UghSurfaceHint

Inherits from MonoBehaviour.

UghSurfaceHint is a class used to calculate the dimensions of an object.  The UghSurfaceHint may use a Collider, a Renderer, or a manually entered size.  UghSurface chiefly uses UghSurfaceHint, but the class can be useful for all sorts of other applications.

Class Variables
name type description
hintCollider Collider If this is non-null, UghSurfaceHint will use the given Collider to calculate the dimensions of this object.
hintRenderer Renderer If this is non-null, and hintCollider is null, UghSurfaceHint will use the given Renderer to calculate the dimensions of this object.
hintSize Vector2 If this is non-null, and both hintCollider and hintRenderer are null, UghSurfaceHint will use the given values to calculate the dimensions of this object.
Width float The width of this object, in Unity units.
Height float The height of this object, in Unity units.
Left float The left-most point of this object, in world space x.
LocalLeft float The left-most point of this object, in local space x.
Right float The right-most point of this object, in world space x.
LocalRight float The right-most point of this object, in local space x.
Top float The top-most point of this object, in world space y.
LocalTop float The top-most point of this object, in local space y.
Bottom float The bottom-most point of this object, in world space y.
LocalBottom float The bottom-most point of this object, in local space y.