案例 : Assets/Scripts/Example/9.Native/Album/AlbumOperate.unity

//打开相册NativeInterface.Instance.OpenAlbum(PhotoPathCallBack);//截屏NativeInterface.Instance.CaptureScreen(CaptureCamera[2],new Rect(0, 0, Screen.width, Screen.height));//保存图片到相册NativeInterface.Instance.SaveTextureToAlbum(filename, texture2D, SaveCallBack);//开始录音NativeInterface.Instance.StartRecordVedio( CaptureCamera ,true, audioSource,Screen.width,Screen.height,recordVedioCallBack: OnReplay,recordTime:recordTime);//结束录音NativeInterface.Instance.StopRecordVedio();//保存音频到相册NativeInterface.Instance.SaveVedioToAlbum(path, SaveVedioCallBakc);
注意 :
iOS不会返回截图路径,暂时无此需求
使用请注意权限的获取
