public UnrealArrayReadWrite <T> FromNative(IntPtr nativeBuffer, int arrayIndex, UnrealObject owner) { if (Wrappers[arrayIndex] == null) { Wrappers[arrayIndex] = new UnrealArrayReadWrite <T>(owner, NativeProperty, nativeBuffer + arrayIndex * Marshal.SizeOf(typeof(ScriptArray)), InnerTypeToNative, InnerTypeFromNative); } return(Wrappers[arrayIndex]); }
public void ToNative(IntPtr nativeBuffer, int arrayIndex, UnrealObject owner, UnrealArrayReadWrite <T> obj) { throw new NotImplementedException("Copying UnrealArrays from managed memory to native memory is unsupported."); }