C# 클래스 tk2dCameraResolutionOverride, Malisse

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

공개 프로퍼티들

프로퍼티 타입 설명
autoScaleMode AutoScaleMode,
fitMode FitMode
height int
name string
offsetPixels Vector2
scale float
width int

공개 메소드들

메소드 설명
Match ( int pixelWidth, int pixelHeight ) : bool

Returns true if this instance of tk2dCameraResolutionOverride matches the curent resolution. In future versions this may change to support ranges of resolutions in addition to explict ones.

메소드 상세

Match() 공개 메소드

Returns true if this instance of tk2dCameraResolutionOverride matches the curent resolution. In future versions this may change to support ranges of resolutions in addition to explict ones.
public Match ( int pixelWidth, int pixelHeight ) : bool
pixelWidth int
pixelHeight int
리턴 bool

프로퍼티 상세

autoScaleMode 공개적으로 프로퍼티

public AutoScaleMode, autoScaleMode
리턴 AutoScaleMode,

fitMode 공개적으로 프로퍼티

public FitMode fitMode
리턴 FitMode

height 공개적으로 프로퍼티

Screen height to match. Set to -1 to match any height.
public int height
리턴 int

name 공개적으로 프로퍼티

Name of the override
public string name
리턴 string

offsetPixels 공개적으로 프로퍼티

Amount to offset from the bottom left, in number of pixels in target resolution. Example, if override resolution is 1024x768, an offset of 20 will offset in by 20 pixels
public Vector2 offsetPixels
리턴 Vector2

scale 공개적으로 프로퍼티

Amount to scale the matched resolution by 1.0 = pixel perfect, 0.5 = 50% of pixel perfect size
public float scale
리턴 float

width 공개적으로 프로퍼티

Screen width to match. Set to -1 to match any width.
public int width
리턴 int