public unsafe TextGenerationSettings() { byte **data = stackalloc byte *[classsize]; IntPtr pointer = UnityInternals.value_box(InternalClassPointerStore <TextGenerationSettings> .NativeClassPtr, (IntPtr)data); myGcHandle = UnityInternals.gchandle_new(pointer, false); }