Answers for "how to check if the player looking at a specific object in unity"

C#
1

unity check if other object is colliding

public void OnCollisionEnter(Collision collision)
     {
         // Do your stuff here
     }
     
     //if your collider is a trigger
     public void OnTriggerEnter(Collider other)
     {
         // Do your stuff here
     }
Posted by: Guest on February-21-2021
1

unity how to check object position

if (transform.position.x == 0)
            {
                print("hi");
            }
Posted by: Guest on February-04-2020

Code answers related to "how to check if the player looking at a specific object in unity"

C# Answers by Framework

Browse Popular Code Answers by Language