上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页

2020年8月20日

unity 加载图片,并且图片不在resource、StreamingAssets里面。

摘要: using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; using System.IO; public enum UI_name{ UpBtn, Down 阅读全文

posted @ 2020-08-20 11:45 zqiang0803 阅读(1046) 评论(3) 推荐(0)

unity 获取文件夹里面有多少个png图片

摘要: //using System.IO; string filePath= Application.dataPath+ "/新建文件夹"; if (Directory.Exists(filePath)) {//判断这个路径是否存在 DirectoryInfo direction = new Direct 阅读全文

posted @ 2020-08-20 11:20 zqiang0803 阅读(742) 评论(0) 推荐(0)

unity C#文件夹操作之Directory类和DirectoryInfo类

摘要: https://blog.csdn.net/a_lllll/article/details/86565280 //删除此目录 Directory.Delete(@"C:\Users\Administrator\Desktop\新建文件夹") //删除此目录,true表示要是此目录有子目录也删除,否则 阅读全文

posted @ 2020-08-20 09:42 zqiang0803 阅读(1723) 评论(0) 推荐(0)

2020年6月18日

unity 点击模型出现标签

摘要: void OnGUI() { if (ifDown) { Vector3 worldToScreen = Camera.main.WorldToScreenPoint(transform.position); GUIStyle style1 = new GUIStyle(); style1.font 阅读全文

posted @ 2020-06-18 17:04 zqiang0803 阅读(568) 评论(0) 推荐(0)

2020年6月11日

unit 获取gameobject的宽度

摘要: transform.GetComponent<RectTransform>().sizeDelta.x 阅读全文

posted @ 2020-06-11 11:31 zqiang0803 阅读(430) 评论(0) 推荐(0)

2020年6月8日

Unity运行时动态加载本地图片的方法,直接上代码,里面很详细。

摘要: using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEngine.UI; public class Test : MonoBehaviou 阅读全文

posted @ 2020-06-08 16:07 zqiang0803 阅读(5526) 评论(0) 推荐(0)

2020年6月1日

unity 边移动边旋转 用程序控制模型

摘要: Sequence mySequence = DOTween.Sequence(); mySequence.Append(transform.DOMove(new Vector3(54, 0, 0), 5)) .Insert(0,cam .transform.DORotate(new Vector3( 阅读全文

posted @ 2020-06-01 17:30 zqiang0803 阅读(676) 评论(0) 推荐(1)

2020年5月27日

unity 鼠标控制object 旋转 放大缩小 移动

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseMoveandScaleRotation : MonoBehaviour { ///旋转速度,需要调试 p 阅读全文

posted @ 2020-05-27 12:00 zqiang0803 阅读(829) 评论(0) 推荐(0)

2020年4月21日

Unity离线中文用户手册

摘要: 百度下载磨磨唧唧,迅雷又不能上传,只能这样了,共享里面有。 阅读全文

posted @ 2020-04-21 16:24 zqiang0803 阅读(1102) 评论(0) 推荐(0)

2020年3月23日

as3.0 改变注册点(有时候原件做好了,不想重新原件)

摘要: //改编别人的 package com { import flash.display.MovieClip; import flash.display.DisplayObjectContainer; import flash.geom.Rectangle; import flash.events.Mo 阅读全文

posted @ 2020-03-23 16:01 zqiang0803 阅读(204) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页

导航