Version: 2020.3
言語: 日本語
public static void* PinGCObjectAndGetAddress (object target, out ulong gcHandle);

説明

Keeps a strong GC reference to the object and pins it. The object is guranteed to not move its memory location in a moving GC. Returns the address of the memory location of the object.

See Also: UnsafeUtility.ReleaseGCObject.