次のようなパブリック変数のアドレスを渡そうとすると、次のようになります。
ML.Register("Radius", &lBeacons[i].Radius, 0.0f, 200.0f, 10.0f);
このエラーが発生します:
error CS0212: You can only take the address of an unfixed expression inside of a fixed statement initializer
Register関数は次のようになります。
public unsafe void Register(string desc, float* val, float minimum, float maximum, float stepsize)
ビーコンはリストです。パブリック半径のクラスを開催しています。