• Register
0 votes
44 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 22 views
22 views
Problem: are you missing a using directive or an assembly reference.
asked Feb 18 charles mathews 5.5k points
0 votes
1 answer 6 views
6 views
Problem: i get errors like these: The type or namespace name `NetworkBehaviour' could not be found. Are you missing a using directive or an assembly reference? The type or namespace name UI' does not exist in the namespace UnityEngine'. Are you missing an ... name `IPointerUpHandler' could not be found. Are you missing a using directive or an assembly reference? Any help will be appreciated.
asked Mar 16 ummesalma 25.2k points
0 votes
1 answer 4 views
4 views
Problem: Getting “type or namespace name could not be found” but everything seems ok?
asked Mar 16 ummesalma 25.2k points
0 votes
1 answer 4 views
4 views
Problem: when I am trying to set up a reference to it an error shows up :'The type or namespace name 'ES' could not be found (are you missing a using directive or an assembly reference?'
asked Mar 16 ummesalma 25.2k points
1 vote
1 answer 4 views
4 views
Problem: Any ideas on what I need to do to fix this? sorry, the page you are looking for could not be found.
asked Mar 18 MUHAMMAD MUNEEB 83k points
0 votes
1 answer 523 views
523 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
0 votes
1 answer 2 views
2 views
Problem I read similar to mine][1] [1]: Why am I getting string does not name a type Error? I couldn't find any clear answer to this anywhere.
asked Apr 9 neeraj 10.5k points
1 vote
1 answer 13 views
13 views
Problem: How to fix this error : vector in namespace std does not name a template type
asked Mar 13 MUHAMMAD MUNEEB 83k points
0 votes
1 answer 1.3K views
1.3K 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 3 views
3 views
Problem: I'll make a submission for a response to my question. Please, I have searched the internet but have not found any useful material, and I am now having trouble continuing my studies.
asked Apr 1 rakib1 51.5k points