Search Issue Tracker
Fixed in 6000.0.17f1
Fixed in 6000.0.X, 7000.0.0a1, future release
Votes
1
Found in
6000.0.11f1
Issue ID
UUM-75821
Regression
No
[IL2CPP] RuntimeMethodHandle.GetFunctionPointer() returns 0 when used on certain methods
How to reproduce:
1. Open the attached Project "GetFunctionPointerReturnsZero.zip"
2. In the Project Settings, under Player -> Other Settings set Scripting Backend to IL2CPP
3. Build and Run the Project
4. Observe the Player.log
Expected result: GetFunctionPointer() returns a proper value
Actual result: GetFunctionPointer() returns 0
Reproducible with: 6000.0.11f1
Not reproducible with: 2021.3.40f1, 2022.3.37f1 ("Unsupported internal call for IL2CPP:RuntimeMethodHandle::GetFunctionPointer - "This icall is not supported by il2cpp. Use Marshal.GetFunctionPointerForDelegate instead."" is thrown when using GetFunctionPointer())
Notes:
- In the example Project GetFunctionPointer() is used on the method UnityEngine.Object.FindObjectsByType()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Add comment