Modifica

Condividi tramite


CanvasExtensions.GetScreenRect(Canvas) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Rect GetScreenRect(UnityEngine::Canvas ^ canvas);
public static UnityEngine.Rect GetScreenRect (this UnityEngine.Canvas canvas);
static member GetScreenRect : UnityEngine.Canvas -> UnityEngine.Rect
<Extension()>
Public Function GetScreenRect (canvas As Canvas) As Rect

Parameters

canvas
UnityEngine.Canvas

The canvas the get the screen rect for

Returns

UnityEngine.Rect

Applies to