案例 : 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不会返回截图路径,暂时无此需求
使用请注意权限的获取