I'm sorry, I just can not figure out how to build a navmesh on a 2D background in a 2.5D game to use a 2D camera.
I know it's not the right forum to ask for it but would you have some quick suggestion?
I've also tried to refer to this AC tutorial but it would seem to not fit my background I think because my walking area is very large.
If I get up and I rotate the camera to frame the navmesh segment the background is deformed due to perspective
If I leave the camera at y = 0 and I I rotate the plane I get a correct framing but of course the perspective of the walking character is altered and in any case it does not seem a good idea
I've tried to build everything like from 2.5D tutorials and of course it works properly. Then I added a 2D camera but when I turn it on the background disappears because it is connected to the 2.5D camera.
Is there a chance to solve it?
Comments
If the background is pre-rendered, then I'd say the way to get a "perfect" match would be to use the "Mesh Collider" pathfinding method, using a NavMesh built in the same 3D scene/software that the pre-rendered scene was made in.
The camera values, and NavMesh transform, would then need to be transferred from the 3D software into Unity, so that the two match up.
You've seen in the tutorials that even a 2D camera can be used - and also know that if a 2D camera's Perspective field is set to Projection, then giving a Horizontal or Vertical Offset value will cause the perspective to shift in the way I mentioned in the other thread.
You can also attach the Limit visibility component to your background so that it will only show when that particular camera is active, meaning you can have other cameras/backgrounds in the scene without them interfering with one another.