I obviously don’t understand correctly how assembly definitions work, hopefully someone can help me a bit
Here is my problem:
I have a bunch of scripts under a folder in my Assets. Let’s say under Assets/Scripts/MyProject/. In that folder, I created an assembly definition named “MyProject”.
Now, besides that, I also have another script located elsewhere, i.e. under Assets/Scripts/OtherScript/OtherScript.cs.
I want to be able to use classes/methods from “OtherScript.cs” in one of my scripts located in Assets/Scripts/MyProject/, how can I do that (using assembly definitions)?
What I did is to create an Assembly Definition Reference file in Assets/Scripts/OtherScript/ and this file references the Assembly Definition defined in Assets/Scripts/MyProject/. So, when I look at OtherScript.cs, I see in the inspector that it does indeed belong to “MyProject.dll”.
…but still, I can’t use classes/methods from OtherScript.cs in Assets/Scripts/MyProject/SomeScript.cs, as the compiler says the Type could not be found.
Based on what you shared with us, it should work. Are you using namespaces? Did you added the proper using statements if you do?
Otherwise please provide screenshots about the contents of the assembly files in the inspector or the code contents in code tags.
It is looking for an OutlineUI not an Outline, you only linked an Outline.cs which contains an Outline MonoBehaviour.
IDK if you renamed this class or you’re looking for another.