资源简介
Unity打开安卓相册工程(Unity2019.2.8f1亲测) ,完整Unity工程;
代码片段和文件信息
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test : MonoBehaviour
{
public UnityEngine.UI.Button Button;
public UnityEngine.UI.Text Text;
public UnityEngine.UI.Image Image;
private void Awake()
{
if (Text != null && Button != null)
{
Button.onclick.AddListener(delegate
{
NativeCamera.OpenPhoto(delegate(string str) {
Text.text = str;
StartCoroutine(LoadPicture(“file://“ + str delegate (Texture2D texture2)
{
Image.sprite = Sprite.Create(texture2 new Rect(0 0 texture2.width texture2.height) Vector2.zero);
}));
});
});
}
}
public IEnumerator LoadPicture(string pic_url System.Action Call_Back)
{
WWW www = new WWW(pic_url);
yield return www;
if (www != null && string.IsNullOrEmpty(www.error))
{
Texture2D texture2 = www.texture;
Call_Back(texture2);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
I.A.... 22353 2019-10-15 19:27 GalleryUnityProject\Assets\1.unity
..A..H. 155 2019-10-15 18:26 GalleryUnityProject\Assets\1.unity.me
文件 1874 2019-09-06 16:54 GalleryUnityProject\Assets\Plugins\Android\AndroidManifest.xm
..A..H. 158 2019-09-06 11:12 GalleryUnityProject\Assets\Plugins\Android\AndroidManifest.xm
文件 29142 2019-09-07 16:04 GalleryUnityProject\Assets\Plugins\Android\NativeCamera.jar
..A..H. 1649 2019-10-15 18:17 GalleryUnityProject\Assets\Plugins\Android\NativeCamera.jar.me
文件 559 2019-01-22 04:18 GalleryUnityProject\Assets\Plugins\Android\NCCallbackHelper.cs
..A..H. 263 2018-12-18 23:34 GalleryUnityProject\Assets\Plugins\Android\NCCallbackHelper.cs.me
文件 940 2019-01-22 04:19 GalleryUnityProject\Assets\Plugins\Android\NCCameraCallbackAndroid.cs
..A..H. 263 2018-04-30 23:00 GalleryUnityProject\Assets\Plugins\Android\NCCameraCallbackAndroid.cs.me
文件 611 2018-05-02 18:32 GalleryUnityProject\Assets\Plugins\Android\NCPermissionCallbackAndroid.cs
..A..H. 263 2018-04-30 23:00 GalleryUnityProject\Assets\Plugins\Android\NCPermissionCallbackAndroid.cs.me
..A..H. 192 2018-04-30 22:31 GalleryUnityProject\Assets\Plugins\Android.me
文件 46051 2019-09-07 10:27 GalleryUnityProject\Assets\Plugins\AndroidManager.cs
..A..H. 243 2019-10-15 18:17 GalleryUnityProject\Assets\Plugins\AndroidManager.cs.me
文件 1603 2018-06-22 20:35 GalleryUnityProject\Assets\Plugins\Editor\NCPostProcessBuild.cs
..A..H. 263 2018-05-02 16:29 GalleryUnityProject\Assets\Plugins\Editor\NCPostProcessBuild.cs.me
..A..H. 192 2018-05-02 16:29 GalleryUnityProject\Assets\Plugins\Editor.me
文件 14194 2018-06-23 21:22 GalleryUnityProject\Assets\Plugins\iOS\NativeCamera.mm
..A..H. 641 2018-05-02 16:29 GalleryUnityProject\Assets\Plugins\iOS\NativeCamera.mm.me
文件 1497 2018-05-02 18:32 GalleryUnityProject\Assets\Plugins\iOS\NCCameraCallbackiOS.cs
..A..H. 263 2018-05-02 16:29 GalleryUnityProject\Assets\Plugins\iOS\NCCameraCallbackiOS.cs.me
..A..H. 191 2018-05-02 16:29 GalleryUnityProject\Assets\Plugins\iOS.me
文件 15107 2019-09-07 10:26 GalleryUnityProject\Assets\Plugins\NativeCamera.cs
..A..H. 274 2018-04-30 22:31 GalleryUnityProject\Assets\Plugins\NativeCamera.cs.me
文件 1544 2019-09-06 16:24 GalleryUnityProject\Assets\Plugins\OpenCamera.cs
..A..H. 243 2019-10-15 18:17 GalleryUnityProject\Assets\Plugins\OpenCamera.cs.me
..A..H. 172 2019-10-15 18:17 GalleryUnityProject\Assets\Plugins.me
文件 1154 2019-10-15 19:27 GalleryUnityProject\Assets\Test.cs
..A..H. 243 2019-10-15 18:26 GalleryUnityProject\Assets\Test.cs.me
............此处省略30个文件信息
- 上一篇:QJson使用VS2010+QT4.8编译
- 下一篇:IE一键设置
相关资源
- Unity3D的传送带工程实现
- vuforia-unity-6-2-10 高通AR vuforia-unity
- NatCorder - Video Recording API_1.7.3.unitypac
- 使用加速度传感器根据步频和步长测
- ListView显示不同类型的列表项的
- Unity 插件:Simple UI - Scroll View Extensi
- 网狐U3D旗舰版源码全套包含服务器端
- Unity3d实现的十字路口的模拟
- UGUI ScrollRect 居中
- 2015最新安卓SDK完整包 绿色版
- unity快速动态衣服布料仿真物理模拟游
- 百度地图定位小图标
- PopupWindowDemo
- unity调用摄像头拍照保存
- unity地形转obj格式导出插件
- 网络连接案例,包含控制台,Unity
-
Unity Touchsc
riptNGUI-master - UnityDownloadAssistant-2017
- unity路径工具Itween插件
- unity真实反射shader mirror_shaders
- Fragment懒加载 友盟统计Fragment时长
- 手机采集摄像头视频socket实时传播
- UnityTerrain2MeshV3
- Unity3-2019所有可破解安装包.txt
- unity 读取手机相册
- 毕业论文-基于安卓的手机日程管理系
- gps 读取卫星星历文件计算卫星位置
- Unity游戏人工智能AI开发
- T4M unity 地形插件
- LitJson for unity
评论
共有 条评论