C# Класс tk2dPixelPerfectHelper, Malisse

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

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

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