5 Star 14 Fork 7

Stan / UnityPhotoPlugins

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

这个项目是为了方便在Unity开发移动端时需要上传头像,上传反馈图片之类的效果而开发的。

为了显示效果近似,用到了网上某大神写的仿IOS ActionSheet稍加改动。

Android平台源码: http://git.oschina.net/lovewestwind/unityphotoplugins

主分支里有demo项目和plugins源码和IOS源码,在Assets/Plugins/IOS/目录下。

IOS部分截图

IMG_2745

IMG_2745

Android部分截图

android1

android2

android3

NextVersion:

  1. IOS平台弹出ActionSheet会黑屏,具体原因是跳到了IOS的Controller,不这样的话会导致nil。
  2. IOS目前是用Base64编码通过Unity的SendMessage回传的,目前写的固定宽高,下一步会以分隔符传输图片尺寸信息,然后加上encode的图片数据回传。
  3. Android方面可以直接回传拍照和所选照片的路径,在权限包括路径问题上还亟待解决。

Comments ( 0 )

Sign in for post a comment

About

Unity在android、IOS平台打开摄像机、读取相册的功能性插件 spread retract
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
C#
1
https://gitee.com/sense7/unityphotoplugins.git
git@gitee.com:sense7/unityphotoplugins.git
sense7
unityphotoplugins
UnityPhotoPlugins
master

Search