CanvasExtensions.GetScreenRect(Canvas) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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