Search Issue Tracker
By Design
Votes
0
Found in
5.4.1f1
Issue ID
843689
Regression
No
[IL2CPP] transform.GetType().GetProperties does not return some of the properties with IL2cpp
Steps to reproduce:
1) Open the attached project.
2) Build for iOS or Android with IL2cpp as the scripting backend.
3) Run on a device.
Check the output log - only some properties returned by transform.GetType().GetProperties get printed out. If all the properties are read correctly, a cube in the scene turns red and is offset from the center (which doesn't happen with IL2cpp).
The missing properties are:
particleSystem, particleEmitter, hingeJoint, collider 2D, collider, guiTexture, guiElement, networkView, guiText, audio, renderer, constantForce, animation, light camera, rigidbody2D, rigidbody, root, localToWorldMatrix, worldToLocalMatrix, parentInternal, parent, localScale, rotationOrder, localRotation, rotation, forward, up, right, localEulerAngles, eulerAngles, localPosition, position.
Reproduces on both iOS and Android.
Reproduced on:
5.5.0b9, 5.4.2p1, 5.3.6p8, 5.2.4f1
Devices tested:
iPhone 7 iOS 10.1
Nexus 5X Android 6.0.1
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
pansimula
Sep 24, 2020 05:42
In Unity 2020.1.6.f1 getting the emission modules properties through GetProperties does not return the same results with a IL2CPP build. RateOverDistance is missing for example, "enabled, rateOverTime, rateOverTimeMultiplier" are the only ones found