BoundsExtensions.GetScreenSpaceCornerPoints(Bounds, Camera) 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 the screen space corner points of the specified UnityEngine.Bounds instance.
public static UnityEngine.Vector2[] GetScreenSpaceCornerPoints(this UnityEngine.Bounds bounds, UnityEngine.Camera camera);
static member GetScreenSpaceCornerPoints : UnityEngine.Bounds * UnityEngine.Camera -> UnityEngine.Vector2[]
<Extension()>
Public Function GetScreenSpaceCornerPoints (bounds As Bounds, camera As Camera) As Vector2()
Parameters
- bounds
- UnityEngine.Bounds
The bounds structure to examine.
- camera
- UnityEngine.Camera
The camera used for rendering to the screen. This is needed to perform the transformation to screen space.