Пример #1
0
        public SerializedObject(Context context)
        {
            var serializedObjectSettings = new SerializedObjectSettings {
            };

            API.iplSerializedObjectCreate(context.Get(), ref serializedObjectSettings, out mSerializedObject);
        }
Пример #2
0
        public SerializedObject(Context context, SerializedData dataAsset)
        {
            var data = dataAsset.data;

            mDataBuffer = Marshal.AllocHGlobal(data.Length);

            Marshal.Copy(data, 0, mDataBuffer, data.Length);

            var serializedObjectSettings = new SerializedObjectSettings {
            };

            serializedObjectSettings.data = mDataBuffer;
            serializedObjectSettings.size = (UIntPtr)data.Length;

            API.iplSerializedObjectCreate(context.Get(), ref serializedObjectSettings, out mSerializedObject);
        }
Пример #3
0
 public static extern Error iplSerializedObjectCreate(IntPtr context, ref SerializedObjectSettings settings, out IntPtr serializedObject);