Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
5.0.0a19
Issue ID
631143
Regression
No
StateMachineBehaviour.OnEnable is called on play even when there is no animator in the scene
To Reproduce:
1.Open the attached project, if scene 'emptyScene' is loaded load another scene, then reload 'emptyScene' & play.
2. Notice, the null reference error, from inside 'TestSMB.OnEnable', its thrown every time you run the scene.
3. Close Unity & reopen the project if 'emptyScene' is loaded the error is not thrown when playing it, but if you load it in editor, like in step 1, it's thrown every time you hit play. It happens relatively inconsistently, most of the times it's no longer called if you had entered play mode in 'test' scene, you have to reopen Unity to reproduce it.
Related to 631119.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
Add comment