question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting massive errors on editor

See original GitHub issue

TargetParameterCountException: 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

Test Project.zip

Much appreciated.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
mob-sakaicommented, Feb 12, 2020

🎉 This issue has been resolved in version 3.0.0-preview.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

2reactions
migus88commented, Feb 9, 2020

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);

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript editor warning "Too many errors" w/ maxerr:1 ...
I'm editing a Javascript .js file with a few global variables and a collection of function definitions. I'm getting a little yellow triangle ......
Read more >
Module compiles, but editor shows compilation issues
Hello,. I have the same kind of problem. The module is compiling with success. But the editor shows me red errors for the...
Read more >
Compile Errors in latest version - General Discussion
When play is pressed (in the editor) I get the following error message. ... it is not as if it is a silly...
Read more >
What Mistakes you Should Avoid in Copy Editing
Top 4 Mistakes to Avoid While Copy Editing · 1. Avoid Incorrect or Overuse of Pronouns · 2. Punctuation Errors · 3. Disorganization...
Read more >
Why are there errors remaining after I paid an editor?
Errors Remaining · First, one editor does the big-picture edits. · Then another editor does the copyediting. Sometimes they have more than one ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found