Forum rules - please read before posting.

Clicks too far outside the navmesh are ignored

I have a scene where the player is stuck inside a really small navmesh and it seems that clicks too far outside the navmesh are ignored, making it hard for people who are used to click "somewhere on the floor" to get the player to move.

I made a repro of the scenario where I highlighted the part of the navmesh that seem to react to clicks in a semi-transparent color. My question is: how do I get clicks outside the semi-transparent box to register as well?

Repro:
https://1drv.ms/u/s!Amz_vh8OYDX3vL8ihTotkJf-WC64Iw?e=iaOzio

PS: Since this is only an issue in these particular scenarios, and the solution requires something that may slow down pathfinding, please consider making this an opt-in feature per navmesh rather than a global movement setting :)

Comments

  • I shall take a look.

    please consider making this an opt-in feature per navmesh rather than a global movement setting

    Which setting specifically?

  • edited September 2020
    I dunno really, was just a thought that if a solution requires changes in order to listen for the whole scene, maybe it could be set per navmesh do not to bog down perf for other navmeshes.
  • All that's needed - at least on my end in the repro - is to increase the NavMesh search % slider in the Settings Manager.

    If need be, you can modify this through script - like any Manager field - but I feel this particular field should be kept as a global setting.

  • edited September 2020

    Sorry, I see now how my repro differs from my actual problem, here's an updated repro that highlight the blank spots that's causing the confusion (even with "NavMesh Search %" set to 100):
    https://1drv.ms/u/s!Amz_vh8OYDX3vL87_pq2XgpD3gf5QQ?e=s6nDvc

    So the question is how can I make the non transparent ground clickable :)

  • As in, outside the "Nav mesh sprite outer" object boundary?

    It's the same behaviour for me - clicking those areas still has the player move as far as they can within the confines of the NavMesh.

    The only issue I'm seeing is a duplicate of this one.

  • edited September 2020
    When I click those areas (the ones on the bottom left and bottom right that aren't covered by transparent black in my latest repro), the character doesn't move at all, no matter where the player is located on the navmesh.

    Are you saying the player moves when you click those areas?

    I'm on PC with latest version of Unity 2020 and latest AC.
  • I am, yes.

    Could it be that some UI or collider is blocking clicks?

  • Well, since we're playing the same exact scene I don't see how that could be. Have you tried it on a PC?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.