Getting massive errors on editor
See original GitHub issueTargetParameterCountException: Number of parameters specified does not match the expected number.
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced. TargetParameterCountException: Number of parameters specified does not match the expected number.
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEditor.EditorApplication:Internal_CallHierarchyHasChanged() (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:334) The serializedObject should not be used inside OnSceneGUI or OnPreviewGUI. Use the target property directly instead.
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
The serializedObject should not be used inside OnSceneGUI or OnPreviewGUI. Use the target property directly instead. UnityEditor.Editor:get_serializedObject()
The serializedObject should not be used inside OnSceneGUI or OnPreviewGUI. Use the target property directly instead. UnityEditor.Editor:get_serializedObject()
The environment is Unity 2019.2.19f1 with UIParticle version 2.3.0
I’ve also attached a sample project that can recreate the error, just open the prefab under FX/EpicLootBoxEffects/Prefabs/Effects/4_Legendary/P_Stardust_02_Legendary.prefab
Much appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
🎉 This issue has been resolved in version 3.0.0-preview.1 🎉
The release is available on:
v3.0.0-preview.1
Your semantic-release bot 📦🚀
We had the same issue when upgraded our project to Unity 2019 (from 2018). The fix is pretty simple. The Invoke method requires all parameters to be passed, even if there is an optional parameter in the method, you need to pass it on. The ‘Handles.DoSimpleEdgeHandle’ method requires an additional bool parameter (optional with default value set to ‘true’) that is not passed from the UIParticleEditor.cs:602
In order to fix this issue, you need to change line 602 from this:
float radius = Call<float> (typeof (Handles), "DoSimpleEdgeHandle", Quaternion.identity, Vector3.zero, shapeModule.radius);
Into this:
float radius = Call<float> (typeof (Handles), "DoSimpleEdgeHandle", Quaternion.identity, Vector3.zero, shapeModule.radius, true);