C# Class tk2dPixelPerfectHelper, Malisse

Inheritance: MonoBehaviour
Exibir arquivo Open project: Collegiennes/Malisse Class Usage Examples

Public Properties

Property Type Description
collectionOrthoSize float
collectionTargetHeight int
targetResolutionHeight float

Public Methods

Method 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 method

public Awake ( ) : void
return void

CalculateScaleForPerspectiveCamera() public static method

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

Setup() public method

public Setup ( ) : void
return void

Property Details

collectionOrthoSize public_oe property

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

collectionTargetHeight public_oe property

The height of the collection target as it was set up.
public int collectionTargetHeight
return int

targetResolutionHeight public_oe property

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