Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.4.X, 2020.1.X
Votes
0
Found in
2018.4
2019.3.4f1
2020.2
Issue ID
1234461
Regression
No
IndexOutOfRangeException and MissingReferenceException are thrown when entering Play Mode with Script that has AlwaysExecute
How to reproduce:
1. Open the attached project's Scene labeled "SampleScene"
2. Enter the Play Mode
Expected result: No errors are thrown
Actual result: An IndexOutOfRangeException and MissingReferenceException are thrown
Reproducible with: 2018.4.23f1, 2019.3.14f1, 2020.1.0b9, 2020.2.0a11
Couldn't test with: 2017.4.40f1 (ExecuteAlways Attribute doesn't exist)
Notes:
1. IndexOutOfRangeException is not thrown in Unity version lower than 2019.3.0f1
2. Master.cs Script is referencing a Button GameObject and toggling it with SetActive OnEnable and OnDisable
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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note (fix version 2020.2):
Fixed in Unity 2020.2.0b1
Resolution Note (fix version 2020.1):
Fixed in Unity 2020.1.5f1 and above
Resolution Note (fix version 2019.4):
Fixed in Unity 2019.4.11f1 and above