Search Issue Tracker

Fixed in 5.5.0f3



Found in


Issue ID




[IL2CPP] Physics Raycaster does not work with IL2CPP



When IL2CPP is used as the Scripting API on mobile devices, Physics Raycaster does not work.

Steps to reproduce:
1) Open the attached project.
2) Build for iOS or Android with IL2CPP as the Scripting API.
3) Run on a device.
4) Tap on the cube in the scene.

The cube should turn blue when tapped on, however it does not. This does not occur with Mono2x or with the Editor. Disabling 'Engine Code Stripping' in the Player Settings' doesn't resolve this issue.

Reproduced on:
5.6.0a2, 5.5.0b11

Did not reproduce:
5.4.2p4, 5.3.7f1

Tested devices:
iPhone 7 iOS 10.2
LG Nexus 5X Android 6.0.1
iPad Air 2 iOS 8.1

Comments (2)

  1. 2rusbekov

    Dec 14, 2018 10:08

    Ussue still appears in 2018.2 version. Raycasts doesn't work with polygoncolider2D, but work with circlecollider2D

  2. 2rusbekov

    Dec 14, 2018 10:06

    Ussue still appears in 2018.2 version.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.