When i try to pass the address of a public variable like this:
ML.Register("Radius", &lBeacons[i].Radius, 0.0f, 200.0f, 10.0f);
I get this error:
error CS0212: You can only take the address of an unfixed expression inside of a fixed statement initializer
The Register function looks like this:
public unsafe void Register(string desc, float* val, float minimum, float maximum, float stepsize)
Beacons is a List. It holds a class with the Public Radius.