C# 클래스 tk2dPixelPerfectHelper, Malisse

상속: MonoBehaviour
파일 보기 프로젝트 열기: Collegiennes/Malisse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
collectionOrthoSize float
collectionTargetHeight int
targetResolutionHeight float

공개 메소드들

메소드 설명
Awake ( ) : void
CalculateScaleForPerspectiveCamera ( float fov, float zdist ) : float

Calculate scale to get 1:1 given fov in degress, and zdistance to camera. This assumes the screen resoulution hasn't changed.

Setup ( ) : void

메소드 상세

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

CalculateScaleForPerspectiveCamera() 공개 정적인 메소드

Calculate scale to get 1:1 given fov in degress, and zdistance to camera. This assumes the screen resoulution hasn't changed.
public static CalculateScaleForPerspectiveCamera ( float fov, float zdist ) : float
fov float
zdist float
리턴 float

Setup() 공개 메소드

public Setup ( ) : void
리턴 void

프로퍼티 상세

collectionOrthoSize 공개적으로 프로퍼티

The ortho size parameter of the sprite collection, as it was set up.
public float collectionOrthoSize
리턴 float

collectionTargetHeight 공개적으로 프로퍼티

The height of the collection target as it was set up.
public int collectionTargetHeight
리턴 int

targetResolutionHeight 공개적으로 프로퍼티

The height of the resolution to map to. (eg. 1024x768 = 768)
public float targetResolutionHeight
리턴 float