C# Class tk2dCameraResolutionOverride, Malisse

Afficher le fichier Open project: Collegiennes/Malisse Class Usage Examples

Méthodes publiques

Свойство Type Description
autoScaleMode AutoScaleMode,
fitMode FitMode
height int
name string
offsetPixels Vector2
scale float
width int

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

Property Details

autoScaleMode public_oe property

public AutoScaleMode, autoScaleMode
Résultat AutoScaleMode,

fitMode public_oe property

public FitMode fitMode
Résultat FitMode

height public_oe property

Screen height to match. Set to -1 to match any height.
public int height
Résultat int

name public_oe property

Name of the override
public string name
Résultat 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
Résultat 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
Résultat float

width public_oe property

Screen width to match. Set to -1 to match any width.
public int width
Résultat int