CanvasExtensions.GetWorldCorners(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.
Convenience method for getting the corners of the canvas in world coordinates. Ordered clockwise from bottom-left.
public:
[System::Runtime::CompilerServices::Extension]
static cli::array <UnityEngine::Vector3> ^ GetWorldCorners(UnityEngine::Canvas ^ canvas);
public static UnityEngine.Vector3[] GetWorldCorners (this UnityEngine.Canvas canvas);
static member GetWorldCorners : UnityEngine.Canvas -> UnityEngine.Vector3[]
<Extension()>
Public Function GetWorldCorners (canvas As Canvas) As Vector3()
Parameters
- canvas
- UnityEngine.Canvas
The canvas to get the world corners from.
Returns
UnityEngine.Vector3[]
An array of Vector3s that represent the corners of the canvas in world coordinates.