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 '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[]