![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity
文章平均质量分 67
FenYinFu
这个作者很懒,什么都没留下…
展开
-
Unity java C 互调
Unity java C 互调原创 2015-06-01 16:06:49 · 848 阅读 · 0 评论 -
Unity 截屏,WWW加载图片,保存到本地
using UnityEngine;using System.Collections;using System.IO;public class NewBehaviourScript : MonoBehaviour { private Texture2D tex; void Start () { CaptureScreenshot2(new Rect(Scre原创 2016-03-22 17:01:28 · 869 阅读 · 0 评论 -
Unity WWW的用法
AssetBundle 动态加载场景 WWW download = WWW.LoadFromCacheOrDownload("file://E:/MirPenUU/sence_gamefarm.ab", 1); //两种方法都可以 WWW download = new WWW("file://E:/MirPenUU/sence_gamefarm.ab"); if原创 2015-07-17 15:32:31 · 6802 阅读 · 0 评论 -
HTTP 请求工具类
using UnityEngine;using System.Collections;using System.Collections.Generic;public class HttpClient : MonoBehaviour{ // Use this for initialization void Start() { } // Upd转载 2015-12-15 16:16:21 · 430 阅读 · 0 评论 -
Unity 鼠标拖动场景内的物体
using UnityEngine;using System.Collections;public class mouse_Drag : MonoBehaviour { public Camera mCamera; public float deth = 10f; //鼠标放到物体上 void OnMouseEnter() { thi原创 2015-07-24 10:04:36 · 991 阅读 · 0 评论 -
动画状态机--动画片段添加事件
动画状态机添加事件……原创 2015-08-25 15:46:45 · 1217 阅读 · 0 评论 -
Resources中读取prefab,动态生成控件
GameObject obj = Resources.Load("RankContent") as GameObject; for (int i = 0; i < 5;i++ ) { GameObject Rank = Instantiate(obj) as GameObject; Rank.transform.par原创 2015-07-14 13:53:56 · 594 阅读 · 0 评论 -
unity中Image显示android手机SD卡中的图片
using UnityEngine;using System.Collections;using UnityEngine.UI;using System.IO;public class ImageManager : MonoBehaviour { private string imagePath; private Image image; private Te转载 2015-06-29 12:26:54 · 2856 阅读 · 0 评论 -
Unity 2D射线与 3D射线 UI射线
//3D射线 if (Input.GetMouseButton(0)) { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);//从摄像机发出到点击坐标的射线 RaycastHit hitInfo; if (Physics.Raycast(r原创 2016-05-26 14:40:17 · 10936 阅读 · 0 评论