Answer the question
In order to leave comments, you need to log in
How to get the layer name through raycast?
How to find out the name of the layer in which the raycast falls in order to create a condition?
For example:
if (hit.collider.gameObject.CompareTag("Tag"))
{
//условие
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question