Modifier

Partager via


CanvasExtensions Class

Definition

Extensions for the Canvas class.

public ref class CanvasExtensions abstract sealed
public static class CanvasExtensions
type CanvasExtensions = class
Public Module CanvasExtensions
Inheritance
CanvasExtensions

Methods

GetChildRectTransformAtPoint(RectTransform, Vector3, Boolean, Boolean, Boolean)

Gets a child rect transform for the given point and parameters.

GetLocalCorners(Canvas)

Convenience method for getting the corners of the canvas in local coordinates. Ordered clockwise from bottom-left.

GetPlane(Canvas)

Convenience method for getting a plane for this canvas in world coordinates.

GetScreenCorners(Canvas)

Gets the position of the corners for a canvas in screen space. 1 -- 2 | | 0 -- 3

GetScreenRect(Canvas)

Returns a rectangle in screen coordinates that encompasses the bounds of the target canvas.

GetViewportCorners(Canvas)

Convenience method for getting the corners of the canvas in viewport coordinates. Note that the points have the same ordering as the array returned in GetWorldCorners()

GetWorldCorners(Canvas)

Convenience method for getting the corners of the canvas in world coordinates. Ordered clockwise from bottom-left.

Raycast(Canvas, Vector3, Vector3, Single, Vector3, GameObject)

Raycast against a canvas using a ray.

Applies to