Search Issue Tracker
By Design
Votes
0
Found in
5.3.3f1
Issue ID
787097
Regression
No
[Delegates] null Delegate.Target == null returns false
Steps to reproduce:
1. open users attached project
2. make new gameObject
3. attach "delegateTargetTest" script
4. play scene
- Check console
Actual: "nullMethod1: False nullMethod2: True" is printed out
Expected: nullMethod1 should return true
Workaround:
string.Equals(delegate.Target.ToString(), "null");
Comments (1)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Char111
Aug 08, 2019 06:51
I've also stumbled into this, thanks for the work around!
Now I just need a way to check if it is null because its for a static method...