C# Класс tk2dCameraResolutionOverride, Malisse

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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