Search Issue Tracker
Fixed
Fixed in 6000.3.0a2
Votes
0
Found in
2021.3.39f1
2022.3.32f1
6000.0.6f1
6000.1.0a7
6000.2.0a1
6000.3.0a1
7000.0.0a1
Issue ID
UUM-73759
Regression
No
Unity Events added to a ScriptableObject are not invoked if they are added in Edit mode and their Call State is set to "Runtime Only"
Reproduction steps:
1. Open the attached “BugRepro.zip” project
2. Open the “EventTestScene”
3. Make sure that in the “EventTest1” ScriptableObject, the OnTrigger() event calls an “EventTest.DoSomething” function on the “EventTest2” ScriptableObject
4. Make sure the Inspector window is showing anything other than the “EventTest1” ScriptableObject
5. Enter Play Mode
6. Observe the Console Window
Expected results: “EventTest2.DoSomething” is called
Actual results: “EventTest2.DoSomething” is never called
Reproducible with: 2021.3.39f1, 2022.3.32f1, 6000.0.6f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- If the Inspector is showing the “EventTest1” ScriptableObject, the “EventTest2.DoSomething” is called after the “EventTestBehavior.Start” calls the “Trigger” function
- If the Event’s Call State is set to “Editor And Runtime”, this behavior does not reproduce
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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
Events execute as per user's expectations.