x


How can I remove constant errors from the EditorWindow

How can I remove the constant nagging from the console:

!IsActive () && !m_RunInEditMode

Assert in files: ..\..\Runtime\Mono\Monobehaviour.cpp at line:470

I've tried just using the example script from ScriptReference/EditorWindow but I still get the error.

more ▼

asked Nov 21, 2010 at 10:52 PM

Skjalg gravatar image

Skjalg
1.7k 67 63 83

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Okay I found the solution to my problem.

I had c# class library that, when built, would copy itself into Assets\Scripts\Libraries\ and it would also add its dependencies, which was UnityEngine.dll and UnityEditor.dll to the same folder.

I set it up to build into that folder by changing the Output Path under Properties->Build->Output at the class library in Visual Studio 2010.

The problem went away when removing UnityEditor.dll from that folder. I guess Unity3D doesnt like importing things twice.

So what I did then, to further automate the process was to edit the Properties->Build Events-> Post-build event command line to the following:

Del "UnityEngine.dll"
Del "UnityEditor.dll"
Del "nunit.framework.dll"
Del "My Library Project.pdb"
more ▼

answered Dec 07, 2010 at 10:48 PM

Skjalg gravatar image

Skjalg
1.7k 67 63 83

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x9070
x504
x279

asked: Nov 21, 2010 at 10:52 PM

Seen: 3675 times

Last Updated: Nov 21, 2010 at 10:52 PM