Hello,
I have a setup where some scripts are stored under Assets/Grid Framework/Plugins/ and I need reference these scripts from with a local package stored under Packages/com.hiphish.grid-framework.samples/. Here is what one of the package scripts looks like:
using UnityEngine;
using GridFramework.Renderers.Rectangular;
namespace GridFrameworkSamples.Endless2D {
// ...
}
The first using statement works, but the other one raises a compile-time error that the GridFramework.Renderers namespace cannot be found. That namespace definitely does exist, I can create instances of its classes in the editor without issue. My understanding is that the package needs to be told to reference the assemblies it needs to use, but I have no idea how to do that for a namespace that is not inside another package but part of the project.
Here is what I am trying to achieve: Grid Framework is a plugin Iβm selling on the Asset Store and I want to make usage examples available as a Git package. Originally I wanted to make the entire Grid Framework a package, but it is impossible to upload anything outside the Assets folder to the Asset Store. So the next best thing to do would be to at least move the examples into a package; people would first install Grid Framework, and if they want examples they can install the extra package. Why not include the examples directly? Because if I do that then the example scripts and textures end up spamming the userβs project.
I have also Playmaker and Vectrosity support and I had no issue referencing their packages. Somehow it works for them.