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
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
- "GetPreferedValue" returns max value when using auto-sizing
Add comment