BoundsExtensions.GetScreenRectangle(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 rectangle which encloses the specifies 'Bounds' instance in screen space.
public:
[System::Runtime::CompilerServices::Extension]
static UnityEngine::Rect GetScreenRectangle(UnityEngine::Bounds bounds, UnityEngine::Camera ^ camera);
public static UnityEngine.Rect GetScreenRectangle (this UnityEngine.Bounds bounds, UnityEngine.Camera camera);
static member GetScreenRectangle : UnityEngine.Bounds * UnityEngine.Camera -> UnityEngine.Rect
<Extension()>
Public Function GetScreenRectangle (bounds As Bounds, camera As Camera) As Rect
Parameters
- bounds
- UnityEngine.Bounds
- camera
- UnityEngine.Camera
Returns
UnityEngine.Rect