Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ObiMeshBasedActorBlueprintEditor coludn't be created
#1
Hello,
every time i try to create a new ObiSoftbodyBlueprint surface or ObiSoftbodyBlueprint volume i get the following errors in my console:

Instance of ObiMeshBasedActorBlueprintEditor couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.
Instance of ObiMeshBasedActorBlueprintEditor couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.
UnityEngine.GUIUtilityLenguarocessEvent(Int32, IntPtr)

Therefore I am not able to use the editor for the blueprint as shown in the documentation (I can't even press 'Generate' for my mesh).

   
   
Reply
#2
(09-03-2020, 12:50 PM)buscfred Wrote: Hello,
every time i try to create a new ObiSoftbodyBlueprint surface or ObiSoftbodyBlueprint volume i get the following errors in my console:

Instance of ObiMeshBasedActorBlueprintEditor couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.
Instance of ObiMeshBasedActorBlueprintEditor couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.
UnityEngine.GUIUtilityLenguarocessEvent(Int32, IntPtr)

Therefore I am not able to use the editor for the blueprint as shown in the documentation (I can't even press 'Generate' for my mesh).

Hi there,

Can't reproduce here, but a quick search reveals it seems to be a bug in Unity:
https://forum.unity.com/threads/custom-e...ug.579088/
https://forum.unity.com/threads/the-scri...ct.650857/

Even the "Multi-object editing not supported" message appears in your screenshot despite having only one object selected, which is indicative of the bug.

Seems to fix itself by restarting the Editor.
Reply
#3
(09-03-2020, 01:05 PM)josemendez Wrote: Hi there,

Can't reproduce here, but a quick search reveals it seems to be a bug in Unity:
https://forum.unity.com/threads/custom-e...ug.579088/
https://forum.unity.com/threads/the-scri...ct.650857/

Even the "Multi-object editing not supported" message appears in your screenshot despite having only one object selected, which is indicative of the bug.

Seems to fix itself by restarting the Editor.

I restarted the editor mayn times already and this sadly didn't fix the bug.
Reply
#4
(09-03-2020, 01:08 PM)buscfred Wrote: I restarted the editor mayn times already and this sadly didn't fix the bug.

What Unity version are you using?
Reply
#5
(09-03-2020, 01:15 PM)josemendez Wrote: What Unity version are you using?

Unity 2019.3.1f1
Reply
#6
(09-03-2020, 01:23 PM)buscfred Wrote: Unity 2019.3.1f1

We've tried 2019.2.9f1 and 2020.1, couldn't reproduce in either. Will try to test in 2019.3.1f1. Does this also happen to you when selecting any of the included softbody blueprint assets?

The error message suggests that Unity has tried to create a instance of a custom inspector script as if it were a ScriptableObject, which it clearly isn't. Also, the "Multi-object editing not supported" should not appear at all unless you have multiple assets selected (which is probably not the case).
Reply
#7
(09-03-2020, 01:30 PM)josemendez Wrote: We've tried 2019.2.9f1 and 2020.1, couldn't reproduce in either. Will try to test in 2019.3.1f1. Does this also happen to you when selecting any of the included softbody blueprint assets?

The error message suggests that Unity has tried to create a instance of a custom inspector script as if it were a ScriptableObject, which it clearly isn't. Also, the "Multi-object editing not supported" should not appear at all unless you have multiple assets selected (which is probably not the case).

The same error message pops up when selecting one of the included blueprints.
Reply
#8
(09-03-2020, 01:34 PM)buscfred Wrote: The same error message pops up when selecting one of the included blueprints.

Just tested in 2019.3.1f1, but sadly I could not reproduce the issue. Selecting both existing or freshly created blueprints works just fine.

I've seen some people with the same issue in other packages:
https://www.noesisengine.com/forums/view...f=3&t=1736

The Unity forums have some threads with the issue, potential solutions other people have reported:
- Reimport the project.
- Restart Unity Hub.
- Restart Unity Editor.

If none of the above work, let me know and I'll raise a bug in the Unity forums.
Reply
#9
(09-03-2020, 01:44 PM)josemendez Wrote: Just tested in 2019.3.1f1, but sadly I could not reproduce the issue. Selecting both existing or freshly created blueprints works just fine.

I've seen some people with the same issue in other packages:
https://www.noesisengine.com/forums/view...f=3&t=1736

The Unity forums have some threads with the issue, potential solutions other people have reported:
- Reimport the project.
- Restart Unity Hub.
- Restart Unity Editor.

If none of the above work, let me know and I'll raise a bug in the Unity forums.
We tried all of the above thanks for your help so far. another question is it important how obi is located in our project? As shown in the image below:
   
Reply
#10
(09-03-2020, 01:50 PM)buscfred Wrote: We tried all of the above thanks for your help so far. another question is it important how obi is located in our project? As shown in the image below:

As long as you don't change or rearrange the contents of the /Obi folder, you can place this folder pretty much anywhere.

Does this also happen to you if you create a fresh project and import Obi?
Reply