public bool ServoUnityGetWindowTextureFormat(int windowIndex, out int width, out int height, out TextureFormat format, out bool mipChain, out bool linear, out IntPtr nativeTexureID) { int formatNative; IntPtr[] nativeTextureIDHandle = new IntPtr[1]; ServoUnityPlugin_pinvoke.servoUnityGetWindowTextureFormat(windowIndex, out width, out height, out formatNative, out mipChain, out linear, nativeTextureIDHandle); nativeTexureID = nativeTextureIDHandle[0]; format = ServoUnityTextureUtils.GetTextureFormatFromNativeTextureFormat(formatNative); if (format == (TextureFormat)0) { return(false); } return(true); }