❔ Is there any way to create a pointer to a C# generic class

I have a script that uses a class "fogGrid<bool>". At the start of the script I want it to be able to specify which instance of the class is manipulated.
Essentially I want fogGrid to be a pointer to instances of the same class in another script (SqrFog, TriFog or CirFog)

I've allowed unsafe code to run, but whenever I try to run it, it states that "It cannot take the address of, get the size of, or declare a pointer to a managed type ("FogSystem<bool>")

For tests sake i was just trying to get it to point to sqrFog. After some googling it says I cannot make pointers to generic types, is there any workaround?
image.png
Was this page helpful?