How to set a gameobject near to camera in 2D mode by script?

Hi,

im working in a 2d game with the new unity3d v4.3 and im creating by script a quad that i want set in foreground, in 3d workflow i can do this modifying the z position, but in 2d i cant. How i can this by script?

Thanks!

You should be able to manually set the z transform with the standard transform.position.z. What code are you using now?

Oh thanks, my mistake was that i modified the Z position with positive value, i change this to -0.1 in Z and works fine.

Thanks!