C# 클래스 RectExtension, UnityToolbag

파일 보기 프로젝트 열기: ChemiKhazi/UnityToolbag 1 사용 예제들

공개 메소드들

메소드 설명
GetRectAsLocal ( this target, RectTransform other, Camera cam = null ) : Rect

Get other RectTransform as a Rect in local space of this RectTransform

GetScreenRect ( this target, Camera cam = null ) : Rect
ScreenAlign ( this input, SpriteAlignment align ) : Rect

메소드 상세

GetRectAsLocal() 공개 정적인 메소드

Get other RectTransform as a Rect in local space of this RectTransform
public static GetRectAsLocal ( this target, RectTransform other, Camera cam = null ) : Rect
target this
other UnityEngine.RectTransform
cam Camera
리턴 Rect

GetScreenRect() 공개 정적인 메소드

public static GetScreenRect ( this target, Camera cam = null ) : Rect
target this
cam Camera
리턴 Rect

ScreenAlign() 공개 정적인 메소드

public static ScreenAlign ( this input, SpriteAlignment align ) : Rect
input this
align SpriteAlignment
리턴 Rect