C# Class tk2dCameraResolutionOverride, Malisse

Mostrar archivo Open project: Collegiennes/Malisse Class Usage Examples

Public Properties

Property Type Description
autoScaleMode AutoScaleMode,
fitMode FitMode
height int
name string
offsetPixels Vector2
scale float
width int

Public Methods

Method Description
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.

Method Details

Match() public method

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
return bool

Property Details

autoScaleMode public_oe property

public AutoScaleMode, autoScaleMode
return AutoScaleMode,

fitMode public_oe property

public FitMode fitMode
return FitMode

height public_oe property

Screen height to match. Set to -1 to match any height.
public int height
return int

name public_oe property

Name of the override
public string name
return string

offsetPixels public_oe property

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
return Vector2

scale public_oe property

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

width public_oe property

Screen width to match. Set to -1 to match any width.
public int width
return int