Search Issue Tracker
Fixed
Votes
0
Found in
4.6.0b3
Issue ID
593340
Regression
Yes
Unity Event system does not recognize type which is derived from expected type
When an event is invoked with an instance of a subclass of the expected type, an ArgumentException is thrown:
ArgumentException: Passed argument 'args[0]' is of the wrong type. Type:<Derived Type> Expected:<Base Type>
UnityEngine.Events.BaseInvokableCall.ThrowOnInvalidArg[<Base Type>] (System.Object arg) (at C:/BuildAgent/work/afa2580bf6048259/Runtime/Export/UnityEvent.cs:65)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "NullReferenceException" is thrown when setting a long string in TMP with "Atlas Population Mode" set to "Dynamic" and "Multi Atlas Textures" enabled
- TextMeshPro text is misaligned when alignment is set via script
- A DX11 shader error is thrown when compiling shaders for platforms without DX11 support
- Rigidbody2D.Slide correctly ignores colliders specified with "Physics2D.IgnoreCollision" however encountering them can still modify movement behaviour in subtle ways.
- [Quality Hackweek] A black separator appears when the left panel in the UI Builder tab is resized, and the tab is narrow
Add comment