C# Class exPixelPerfectCamera, ex2d-v1

Inheritance: MonoBehaviour
显示文件 Open project: exdev/ex2d-v1 Class Usage Examples

Public Properties

Property Type Description
customResolution bool
fixOrthographicSize bool
height int
orthographicSize float
width int

Protected Properties

Property Type Description
lastFieldOfView float
lastOrthographic bool
lastOrthographicSize float
lastScreenHeight int
lastScreenWidth int

Public Methods

Method Description
Awake ( ) : void
CalculatePixelPerfectScale ( exSpriteBase, _sprite, Vector3 _toSprite ) : void
CalculateScaleAndRatio ( ) : void
OnPreRender ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

CalculatePixelPerfectScale() public method

public CalculatePixelPerfectScale ( exSpriteBase, _sprite, Vector3 _toSprite ) : void
_sprite exSpriteBase,
_toSprite Vector3
return void

CalculateScaleAndRatio() public method

public CalculateScaleAndRatio ( ) : void
return void

OnPreRender() public method

public OnPreRender ( ) : void
return void

Property Details

customResolution public_oe property

public bool customResolution
return bool

fixOrthographicSize public_oe property

public bool fixOrthographicSize
return bool

height public_oe property

public int height
return int

lastFieldOfView protected_oe property

protected float lastFieldOfView
return float

lastOrthographic protected_oe property

protected bool lastOrthographic
return bool

lastOrthographicSize protected_oe property

protected float lastOrthographicSize
return float

lastScreenHeight protected_oe property

protected int lastScreenHeight
return int

lastScreenWidth protected_oe property

protected int lastScreenWidth
return int

orthographicSize public_oe property

public float orthographicSize
return float

width public_oe property

public int width
return int