- Home /
Physics.Raycast not working on il2cpp
Hi,
I have code:-
if (Physics.Raycast(cam.ScreenPointToRay(touch.position), out hit, Mathf.Infinity, paintLayerMask))
{ //some code`}
where Physics.Raycast detects a collision on scripting backend Mono but not work with Il2cpp with no errors.
Please help and TIA.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613021419im_/https://answers.unity.com/themes/thub/images/avi.jpg)