CanvasExtensions.GetScreenCorners(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.
Gets the position of the corners for a canvas in screen space. 1 -- 2 | | 0 -- 3
public:
[System::Runtime::CompilerServices::Extension]
static cli::array <UnityEngine::Vector3> ^ GetScreenCorners(UnityEngine::Canvas ^ canvas);
public static UnityEngine.Vector3[] GetScreenCorners (this UnityEngine.Canvas canvas);
static member GetScreenCorners : UnityEngine.Canvas -> UnityEngine.Vector3[]
<Extension()>
Public Function GetScreenCorners (canvas As Canvas) As Vector3()
Parameters
- canvas
- UnityEngine.Canvas
The canvas to get the screen corners for.
Returns
UnityEngine.Vector3[]