This issue has been bugging me for days and lots of hours lost. Already checked the known issues on the release notes.
Might as well post it here to ask for help, so that you guys can tell me, if I missed something.
As the title says, I can’t properly reference classes from the Assembly-CSharp into Assembly-CSharp-Editor.
Upon checking, the project Assembly-CSharp is a dependency of the Assembly-CSharp-Editor. With that said, I expect the public classes from the Assembly-CSharp would be accessible as intended.
Listing 1
// Declared in Assembly-CSharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Tool {
public class CubicBezierTool : MonoBehaviour {
}
}
Listing 2
// Declared in Assembly-CSharp-Editor
using UnityEditor;
using UnityEngine;
using Tool; // Namespace doesn't get recognize
[CustomEditor(typeof(CubicBezierTool))] // Absolutely, this wouldn't be also recognized
public class BezierHandle : Editor {
private void OnSceneGUI() {
CubicBezierTool tool = (CubicBezierTool)this.target;
Handles.Label(tool.transform.position, "Shit");
}
}
As seen in the snippet posted, you guys can assume the project would be built smoothly, but it wasn’t; because on the listing #2 line 4, the compiler doesn’t recognize immediately the namespace Tool and also the class CubicBezierTool at line 6
If someone can help me, that would be really great.
BTW I’m using Unity 2019.3.12f1 and Visual Studio 2019 Community Edition