public static bool arwGetTrackableAppearanceImage(int markerID, int patternID, [In, Out] Color32[] colors32) { bool ok; GCHandle handle = GCHandle.Alloc(colors32, GCHandleType.Pinned); IntPtr address = handle.AddrOfPinnedObject(); if (Application.platform == RuntimePlatform.IPhonePlayer) { ok = ARNativePluginStatic.arwGetTrackableAppearanceImage(markerID, patternID, address); } else { ok = ARNativePlugin.arwGetTrackableAppearanceImage(markerID, patternID, address); } handle.Free(); return(ok); }