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
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
- Manual reference page for Grid Selection is missing
- Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
- Prefab "Overrides" list item popups are overridden when navigating with keyboard arrow keys
- Alpha Tolerance setting does not affect generated outlines when generating Custom Physics Shape in the Sprite Editor
- The information/help message section misses a margin in the "Profiler" window
egnteurname
May 29, 2019 11:33
gg