How can I get the entity the player is facing? Like if the player is looking at a wall,i can get the wall.
Get the entity that the player is facing
What do you mean?
Do you mean the ability to know where the player is looking at?
Do you mean the ability to know where the player is looking at?
You can use RayCast or similar functionality in Unity to do this. An example is in my Hide & Seek plugin as well as the Robbery one.