C# 클래스 Engineer.Extensions.RectExtensions

파일 보기 프로젝트 열기: CYBUTEK/Engineer

공개 메소드들

메소드 설명
ClampInsideScreen ( this value ) : Rect

Clamps the rectangle inside the screen region.

ClampToScreen ( this value, float margin = 25f ) : Rect

Clamps the rectangle into the screen region by the specified margin.

MouseIsOver ( this value ) : bool

Returns whether the mouse is within the coordinates of this rectangle.

메소드 상세

ClampInsideScreen() 공개 정적인 메소드

Clamps the rectangle inside the screen region.
public static ClampInsideScreen ( this value ) : Rect
value this
리턴 UnityEngine.Rect

ClampToScreen() 공개 정적인 메소드

Clamps the rectangle into the screen region by the specified margin.
public static ClampToScreen ( this value, float margin = 25f ) : Rect
value this
margin float
리턴 UnityEngine.Rect

MouseIsOver() 공개 정적인 메소드

Returns whether the mouse is within the coordinates of this rectangle.
public static MouseIsOver ( this value ) : bool
value this
리턴 bool