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
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
egnteurname
May 29, 2019 11:33
gg