随笔分类 -  Unity3D开发

摘要:根据自己项目需求调整代码中表达式的公共方法 using System.Collections; using System.Collections.Generic; using System; using UnityEngine; /// <summary> /// 四则运算管理类 /// </sum 阅读全文
posted @ 2022-03-08 09:44 U3DEngineer 阅读(93) 评论(0) 推荐(0) 编辑
摘要:using System.Collections.Generic; using UnityEngine; /// <summary> /// 随机数管理类 /// </summary> public class RandomHelper { /// <summary> /// 生成指定位数的随机码( 阅读全文
posted @ 2022-03-08 09:18 U3DEngineer 阅读(381) 评论(0) 推荐(0) 编辑
摘要:1、进度条(在规定时间内完成进度条) private Image progressBar; private float currentProgress = 0; /// <summary> /// 进度条需要持续的时长 /// </summary> private float duration = 阅读全文
posted @ 2021-06-24 10:11 U3DEngineer 阅读(1386) 评论(0) 推荐(0) 编辑
摘要:使用的命名空间如下 using LitJson;using System.Collections.Generic;using System.IO;using System.Text;using UnityEngine;using UnityEngine.Networking; 1、通过UnityWe 阅读全文
posted @ 2021-05-20 14:25 U3DEngineer 阅读(5923) 评论(0) 推荐(0) 编辑
摘要:HTCVIVE定位器更新之后,定位器指示灯不亮,固件修复指南 建议您重置基站固件,操作如下:请您使用手机来拍照运行中基站的“激光发射器”面板,并且数一下是否有17颗LED灯,如果没有17颗,则基本可以判断基站有损坏,需要进行返厂处理。若基站的“激光发射器”面板内LED灯数量为17,建议您可以尝试通过 阅读全文
posted @ 2018-12-13 13:44 U3DEngineer 阅读(4643) 评论(0) 推荐(0) 编辑
摘要:需要导入插件:System.Windows.Forms 阅读全文
posted @ 2018-12-10 18:52 U3DEngineer 阅读(367) 评论(0) 推荐(0) 编辑
摘要:第一种刷新文字形式 using UnityEngine; using System.Collections; using UnityEngine.UI; public class SensorTextRefresh2 { // Use this for initialization string s 阅读全文
posted @ 2018-09-08 19:47 U3DEngineer 阅读(5484) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; using UnityEngine.Events; using UnityEngine.EventSystems; public class LeftMenuBarEven... 阅读全文
posted @ 2018-05-09 20:25 U3DEngineer 阅读(920) 评论(0) 推荐(0) 编辑
摘要:1、遍历Transform直接子transform 2、递归遍历该GameObject的所有子GameObject 阅读全文
posted @ 2018-04-29 16:32 U3DEngineer 阅读(3695) 评论(0) 推荐(0) 编辑
摘要:一、Toggle Group(Script) LeftButtons上添加Toggle Group组件,属性Allow Switch Off打对勾,代表它的所有子物体上带有Toggle组件的属性Is On是关闭状态。 至此一个按钮组ToggleGroup制作完毕,在这个组下的Toggle只有一个可以 阅读全文
posted @ 2018-04-27 20:24 U3DEngineer 阅读(695) 评论(0) 推荐(0) 编辑
摘要:List<Animation> storeAnimation; public void Awake() { storeAnimation = new List<Animation>(); storeAnimation.Clear(); } private void Update() { //1. 获 阅读全文
posted @ 2018-03-30 19:56 U3DEngineer 阅读(1013) 评论(0) 推荐(0) 编辑
摘要:Billboard Start 该项用于设定摄像机将树渲染为广告牌的距离。 阅读全文
posted @ 2018-03-29 15:57 U3DEngineer 阅读(728) 评论(0) 推荐(0) 编辑
摘要:下面是API类 Asr.cs 下面是测试类 main.cs 资源来源于关尔Manic的技术园 http://blog.csdn.net/zhenghongzhi6/article/details/78688571#comments 阅读全文
posted @ 2018-01-02 18:45 U3DEngineer 阅读(788) 评论(0) 推荐(0) 编辑
摘要://使用www的库,读取数据里面的数据 string factoryControllerUrl = "http://IP地址:8086/DatabaseServerCode/GangShan.aspx"; WWWForm wwwF = new WWWForm(); wwwF.AddField("userName", "test"); ... 阅读全文
posted @ 2017-12-22 15:21 U3DEngineer 阅读(1129) 评论(0) 推荐(0) 编辑
摘要:using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; using UnityEngine.UI; public class LoadingScene : MonoBehaviour { public Image progressImg; private AsyncOpera... 阅读全文
posted @ 2017-12-20 11:27 U3DEngineer 阅读(3731) 评论(0) 推荐(1) 编辑
摘要:using UnityEngine; using System.Collections; using UnityEngine.Events; using UnityEngine.EventSystems; using System.Collections.Generic; using UnityEngine .UI ; public class DistrictBgEvent { ... 阅读全文
posted @ 2017-12-11 10:11 U3DEngineer 阅读(1173) 评论(0) 推荐(0) 编辑
摘要:private List Date; private List Day; private string now; private WMG_Axis_Graph m_WMG_Axis_Graph; void Start () { Date = new List(); Day = new List(); ... 阅读全文
posted @ 2017-11-30 12:45 U3DEngineer 阅读(1159) 评论(0) 推荐(0) 编辑
摘要:现在我们只需要在没有触摸UI的时候进行射线检测或者其他操作就行了。 在Android机上进行UI防止穿透,写了一套全平台通用的代码如下。 我们将IsPointerOverGameObject统一修改为自己重载的方法,然后传进去Input.mouseposition 就可以了。 原文链接:http:/ 阅读全文
posted @ 2017-11-27 11:02 U3DEngineer 阅读(994) 评论(0) 推荐(0) 编辑
摘要:不过在使用时需要先获取两个红色显示的变量,graphicRaycaster和eventSystem。 这两个变量分别对应的是Canvas中的GraphicRaycaster组件和创建UI时自动生成的“EventSystem”中的EventSystem组件。 引用 using UnityEngine; 阅读全文
posted @ 2017-11-27 10:48 U3DEngineer 阅读(2513) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示