• Register
Log In
0 votes

Problem :

Unable to find solution for bellow error
the type or namespace name `unityeditor' could not be found. are you missing an assembly reference?
6.9k points

1 Answer

0 votes

Solution :

I had faced a similar problem with one of my scriptable objects in the past. My scriptable object was not an editor script but it had OnInspectorGUI code in it was used so that I only need to write the inspector gui for the scriptable object once.

I fixed the problem by putting #if UNITY_EDITOR before using UnityEditor directive and #endif after it. You will also need to surround your GUI code with these same tags.

Further Readings:


36.1k points

Related questions

0 votes
1 answer 51 views
Problem : I am getting into the C# coding but I am having following issue: I have below code on the UserControl: using MyFirstDataLayer.Section1; public class MyFirstClass { protected void MyFirstMethod { MyFirstClass.MyFirstItem oItem = new MyFirstClass.MyFirstItem(); oItem = ... name instead I am not sure of what this actually means, I did some research but was unable to figure it out.
asked Dec 18, 2019 alecxe 7.5k points
1 vote
1 answer 294 views
Problem : I am very new to the C++programming, and so I keep facing the below error saying: Reference to overloaded function could not be resolved; did you mean to call it? Below is my code that is causing me all sorts of troubles : #include <stdio.h> #include < ... have multiple files, all of the files fail to work. Can anyone explain me why my code is failing and can be the solution for it?
asked Dec 30, 2019 alecxe 7.5k points
1 vote
1 answer 373 views
Problem : The below errors are often thrown when I try to run my ASP.NET MVC5 Web Project. Have anybody faced this issue before ? Any solution on my issue? Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=, ... the assembly name resulted in the mismatch: Build Number ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
asked Dec 14, 2019 alecxe 7.5k points
0 votes
0 answers 8 views
Problem: I have fundamental knowledge related to android and apk-expansion-files. Currently my obb files download in my projects stopped working suddenly for all of my unpublished applications. Please find the error as shown below. Download failed because the resources ... it actually means. Any suggestions from any expert on android on how to make obb files download work will be appreciated!
asked Jun 16 Raphael Pacheco 560 points
1 vote
1 answer 18 views
Problem: I am working on a django project but after working for several days when I opened atom today and try to write program it shows: (Uncaught Error: The specified module could not be found. \?\C:\Users\ASUS\AppData\Local\atom\app-1.45.0\resources\app.asar.unpacked\ ... .node ELECTRON_ASAR.js:160) I can not write any code or remove any word for this error. What should I do to fix this error?
asked Jun 7 samhaz 5k points