Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
how to see a tag of what you hit with raycast
user33687
Programming language:
C#
2021-05-17 04:39:46
0
Q:
how to see a tag of what you hit with raycast
user8745622
Code:
C#
2021-03-22 01:44:08
if (Physics.Raycast (transform.position, fwd, hit, Reach) && hit.transform.tag == "TagName") {
0
Tags
how
Related
unity ray from mouse position
raycast unity
unity find objects with tag
unity3d raycast
camera to follow player unity
Check object is in layermask unity
how to check the tag of a collider in unity
unity how to see what scen you are in
unity raycast
how to find the tag of an objecdt in unity
New to Communities?
Join the community