Modifica

Condividi tramite


BoundsExtensions.GetScreenRectangle(Bounds, Camera) Method

Definition

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

Applies to