Vector3.Unproject onto xz plane

How can I project screen coordinates onto the x-z plane? I have already got Vector3.Unproject working fine, and being able to control depth with the screen coordinate vector’s z. How can I project where the returned vector’s y is 0, so that the point will always be on the x-z plane?

Here is a PG without the locked y:

One way is to create a big invisible plane to pick against. :slight_smile:

2 Likes

Thanks!

1 Like