RealityStop / Bolt.Addons.Community

A community-driven project for extending Unity Bolt
MIT License
250 stars 34 forks source link

Cannot Access Namespace Made in Class Asset #60

Closed CG-Tespy closed 9 months ago

CG-Tespy commented 11 months ago

For context, I have a class asset called TargetSelectStart with its Category set to RPG.UI. Naturally, that means that when compiled, that class is put into the RPG.UI namespace. The thing is that despite my C# scripts referencing the community addons assembly, I can't access the RPG.UI namespace (and by extension, TargetSelectStart).

What I wanted to do was have my C# scripts listen for when events of that class type are triggered, so yeah.

S2NX7 commented 11 months ago

are you sure you dont have you own assemblies that the scripts are in or your scripts are in a editor folder

CG-Tespy commented 10 months ago

Yes, I do have my scripts in their own assembly. I made sure to have it reference the community addons assembly too

S2NX7 commented 10 months ago

How are you trying to access them?

CG-Tespy commented 10 months ago

Through this line of code: using RPG.UI;

As the addon classes are in their own assembly, there was no way for me to access them without making an assembly for my main scripts that references that of the addons.