Getting auto walk to work

I can’t figure out auto walk. I want the camera (or player) to be able to move when you look at a specific object and stop if you look at the object again. I also want to be able to make multiple objects that trigger the auto walk, is this possible? if so how?

Use OnPointerEnter and basic Vector arithmetic and you should be fine. OnPointerEnter will basically swap the states (let’s call it WalkingTowardsThis). If it’s false, OnPointerEnter will go to true. When you look away and look at it again, it will go to false. Then you just simply need to create a coroutine or code in Update() which will give the player or the camera velocity which has the same direction and orientation as the Vector (GameObject.transform.position - Player.transform.position). Once the player arrives to some minimum distance from the object, the WalkingTowardsThis is set to false. In the case of multiple objects being triggered at once, you would either need to disable all other WalkingTowardsThis, or you would need to keep a list of all those object and then travel to the nearest object.