Search Issue Tracker
Fixed in 2017.3.0f3
Fixed in 2017.3.X
Votes
0
Found in
2017.2.0f3
Issue ID
1008942
Regression
No
[IL2CPP] At runtime, assigning sprite to m_Sprites[] on RuleTile produces exception on IL2CPP builds
The User wrote code that assigns a new Sprite to the m_Sprites[] of each Rule on a RuleTile. The purpose is to dynamically skin a TileMap at runtime, by using a different Sprite atlas that contains the same named sprites as the source atlas used in the RuleTile. The codes work as expected in the Editor, and it works on Android builds using Mono, but produces Exceptions when building to Android with IL2CPP
To reproduce:
1. Download project from the attached link and open in Unity
2. Change Scripting Backend to Mono
3. Run logcat
4. Build and Run the project on an Android device
5. Start a game and play a bit
6. Observe logcat and see that everything works fine
7. Exit APK
8. Change Scripting Backend to IL2CPP
9. Run logcat
10. Build and Run the project on an Android device
11. Start a game and play a bit
12. Observe logcat and see that there are a lot of NullReferenceExceptions
Notes:
- The exceptions and logcats are shared in the comments section
Devices:
- Google Pixel 2, OS: 8.1.0, CPU: arm64-v8a, GPU: Adreno (TM) 540
- Samsung Galaxy Note 8, OS: 7.1.1, CPU: arm64-v8a, GPU: Adreno (TM) 540
Reproduced on Unity 2017.2.0f3, 2017.2.2p1 and 2017.3.1p3
Could not check for regression and is this is fixed because in Unity 2017.1, 2018.1 and 2018.2 Shaders becomes broken
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Baked Lightmap ”View” button text is aligned incorrectly
- Lightmap Asset icon changes colours after Baked Lightmap Viewer window is opened
- VideoClipImporter preset not applied when applying Preset Selector on already imported video clips
- Frame Debugger gets disabled when any Editor window is maximised and minimised
- TextMeshPro InputField view is not updated when OnEndEdit is triggered
Add comment