BoundsExtensions.GetScreenSpaceCornerPoints(Bounds, Camera) Method

Definition

Returns the screen space corner points of the specified 'Bounds' instance.

public:
[System::Runtime::CompilerServices::Extension]
 static cli::array <UnityEngine::Vector2> ^ GetScreenSpaceCornerPoints(UnityEngine::Bounds bounds, UnityEngine::Camera ^ camera);
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
camera
UnityEngine.Camera

The camera used for rendering to the screen. This is needed to perform the transformation to screen space.

Returns

UnityEngine.Vector2[]

Applies to