jwu/ex2D_Runtime — Issue #15: exViewportPosition & exScreenPosition not working with perspective camera
Author: jorrit5477
Created: 2011-11-08 11:39:22+00:00
State: open

When using a perspective camera, bot the exViewportPosition and exScreenPosition components do not work as expected.
Having a perspective camera would allow to mix 2D and 3D assets easily, without the need of having multiple cameras.

I used the demo_simple_sprite_anim
Changed Camera projection setting to Perspective
Set Transform2D property to Viewport
Checked Use Pixel Perfect (set to true)
Played with the exViewportPosition component
Changed the z position.

Expected:
Sprite is displayed at same position (as in orthographic projection)

Maybe my expectation is incorrect.

Using version 1.2.1 (evaluation), have tested as well as with the current master branch, compiled on Windows