- Home /
Question by
Haobo38 · Oct 19, 2021 at 01:06 PM ·
raycastgraphicsraycastall
graphic raycast with a certain direction ?
is there a funciton like :
Ray ray = new Ray(transform.position, transform.forward);
Physics.Raycast(ray, out hit, defaultLength);
for the graphic elements like image or button where we can controll the direction of the raycast.
in the example we have the direction of transform.forward); thanks
Comment
Your answer
Follow this Question
Related Questions
RaycastHit.textureCoord returns zero on Android if mesh is not set to readable 1 Answer
Raycast trail renderer? 3 Answers
Bullets sometimes don't work 1 Answer
NullRefException in RaycastAll 2 Answers
[help]RayCast check [SOLVED] 2 Answers