Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
CanvasUtil Class Reference

Static Public Member Functions

static Vector2 AnchorOffset (Vector2 uiPos, RectTransform rt, Vector2 anchor)
 
static bool Contains (this RectTransform rt, Vector3 screenPos)
 
static bool RectContains (RectTransform rt, Vector3 screenPos)
 
static Vector2 ScreenToUISpacePos (Vector3 screenPos, RectTransform canvasRect, out bool zPositive)
 

Member Function Documentation

static Vector2 CanvasUtil.AnchorOffset ( Vector2  uiPos,
RectTransform  rt,
Vector2  anchor 
)
inlinestatic
static bool CanvasUtil.Contains ( this RectTransform  rt,
Vector3  screenPos 
)
inlinestatic
static bool CanvasUtil.RectContains ( RectTransform  rt,
Vector3  screenPos 
)
inlinestatic
static Vector2 CanvasUtil.ScreenToUISpacePos ( Vector3  screenPos,
RectTransform  canvasRect,
out bool  zPositive 
)
inlinestatic

The documentation for this class was generated from the following file: