Built in Parallax for Orthographic Cameras?

Hello!

I was under the impression that the 2D stuff would have built in parallax for orthographic cameras, where the background layers could move slower than the rest.

Is this a feature?

Thanks!

Have a look at the 2D introduction video on the “What’s new” Page for 4.3. The paralax is a script effect you need to import.
I haven’t tried it yet but the video shows it.

If you want hassle free parallaxing then switch to a perspective camera. The 2D orthographic camera is specifically designed not to follow z-order thus preventing any kind of free parallaxing you’d expect otherwise. The script for the 2D demo project however demonstrates how to achieve the desired effect with a very minimal amount of code.

Oh boy I didn’t see that script. I ended up writing my own code for the camera that moves the backgrounds a % of the movement of the camera, so it’s smooth and the speed is easily editable. I’ll check out their code though – it’s most likely more elegant.

Try implementing layers of textured quads, scale them to the camera’s viewport and mess around with the texture coordinates.
I created a script for this you might want to check it out.