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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
Events execute as per user's expectations.