Search Issue Tracker
By Design
Votes
0
Found in
2017.2.0f3
Issue ID
961893
Regression
No
[Scripting] UnityEvent() has multiple methods that are not working
To reproduce:
1. Open Unity, create a new project and open it
2. Download attached script "UnityEventCountTest.cs" and attach it to project
3. Attach "UnityEventCountTest.cs" Script to any gameObject
4. Enter Play mode
Note: Observe that the GetPersisentEventCount() returns zero always leaving multiple API's unusable
5. Exit Play mode
6. Go to the Unity Event Documentation
7. Copy that Code which is in the Documentation
8. Go back to your Unity project, create a new script, paste that code from Documentation, paste this snippet
"Debug.Log(m_MyEvent.GetPersistentEventCount());", save a script and attach it to any gameObject
9. Enter Play mode
Note: Observe that it returns zero even though the Unity Event Documentation registers a listener
Notes:
- This issue appears on Windows and OSX
Reproduced on Unity 5.5.5p1, 5.6.4p1, 2017.1.2p2, 2017.2.0p1, 2017.3.0b7 and 2018.1.0a2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Light2D with Light type "Spot" does not work in the Player on some Pixel devices
- [Android] Loading the asset using an old reference returns null even when the "FormerlySerializedAs" attribute is used
- Crash on ParticleSystemTrailGeometryJob::RenderJobCommon when changing trail Mode change with a large particle count
- Mouse cursor does not revert to the default mouse cursor when pressing the "Add column" button in the Search window
- ArgumentException is thrown and textures become unreadable when AssetBundle.Unload(false) is called
Add comment