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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
egnteurname
May 29, 2019 11:33
gg