• Register
0 votes
43 views

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 5 3
6,930 points

Please log in or register to answer this question.

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:

https://github.com/microsoft/RoomAliveToolkit/issues/75

9 7 4
38,600 points

Related questions

0 votes
1 answer 457 views
457 views
Problem: I am having only basic knowledge of git. Now I am trying to clone the project from a gitlab to my own local machine. I have already been granted rights as the developer on it and I have used the command as 'git clone’. But none of the ... “Remote: The project you were looking for could not be found.” Any help in fixing my git related error would be highly appreciated.
asked Sep 4, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 314 views
314 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 995 views
995 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
0 votes
1 answer 6 views
6 views
Problem: Hi there! I am trying to run following program: using System; using System.IO; namespace ConsoleApp2 { class Program { public static void Main(string[] args) { FileStream fs = File.Open("e:\\file.txt", FileMode.Open); Console.ReadKey(); } ... .IOFileNotFoundException could not load file or assembly I want to know why these exceptions are thrown by the compiler and how to resolve them?
asked Dec 4, 2020 Code Learner 5.5k points
0 votes
1 answer 21 views
21 views
Problem: I have tried to upload my website to a server for the very first time. My website was working fine at my local host so I tried to upload everything from my localhost to the server and then I also changed the connection string. But still I ... dependencies. The system cannot find the file specified. at RouteDebug.PreApplicationStart.Start() What should I do to fix the above server error?
asked Aug 26, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 1.1K views
1.1K 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=1.0.8.0, ... 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
1 answer 49 views
49 views
Problem : I am trying to run some of the unit tests in the C# Windows Forms application (Visual Studio 2005), however I am facing the below error : System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken= ... version 1.2.0.203. Any pointers on how can I figure out what is trying to reference the old version of my DLL file?
asked Dec 23, 2019 alecxe 7.5k points
0 votes
1 answer 11 views
11 views
When i am applying Google OBB downloader this problems happens. I am browsing serveral forums however didn&rsquo;t get the desired result. Anyone here give me the specific solution.
asked Sep 14, 2020 Daniel Anderson 4k points
0 votes
1 answer 12 views
12 views
Problem: I am starting my work with the images in Python and I am trying to start using PIL (Pillow). To install the PIL I ran the following command: pip install Pillow. While installing the PIL was not previously installed. I also tried to uninstall it and then reinstall it ... my PIL folder. Why is this showing me the error if the needed DLL is already there? How can a beginner like me fix it?
asked Aug 27, 2020 Raphael Pacheco 4.9k points