C# Class tk2dPixelPerfectHelper, Malisse

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

Méthodes publiques

Свойство Type Description
collectionOrthoSize float
collectionTargetHeight int
targetResolutionHeight float

Méthodes publiques

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

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

CalculateScaleForPerspectiveCamera() public static méthode

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

Setup() public méthode

public Setup ( ) : void
Résultat void

Property Details

collectionOrthoSize public_oe property

The ortho size parameter of the sprite collection, as it was set up.
public float collectionOrthoSize
Résultat float

collectionTargetHeight public_oe property

The height of the collection target as it was set up.
public int collectionTargetHeight
Résultat int

targetResolutionHeight public_oe property

The height of the resolution to map to. (eg. 1024x768 = 768)
public float targetResolutionHeight
Résultat float