• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






小小灵爱李婷

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  C#

 
清除子节点、创建子节点函数
摘要:/// 删除指定节点的所有子 /// </summary>/// <param name="go"></param>public static void ClearChildren(GameObject go, bool saveInactiveChild = false){ for (int i 阅读全文
posted @ 2017-06-08 15:14 小小灵爱李婷 阅读(259) 评论(0) 推荐(0)
Unity调用系统窗口选择文件或文件路径
摘要:using UnityEngine;using System.Collections;using System;using System.Runtime.InteropServices;[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Au 阅读全文
posted @ 2017-05-23 11:32 小小灵爱李婷 阅读(3980) 评论(0) 推荐(0)
解决滚动事件与点击事件不兼容的问题
摘要:using UnityEngine; using System.Collections; using UnityEngine.EventSystems; public class EventTriggerUtility : MonoBehaviour, IPointerClickHandler, I 阅读全文
posted @ 2017-04-17 17:50 小小灵爱李婷 阅读(400) 评论(0) 推荐(0)
鼠标控制模型旋转
摘要:using UnityEngine; using System.Collections;public class RotaRole : MonoBehaviour{ public Vector3 mousePos; IEnumerator OnMouseDown() { mousePos = Inp 阅读全文
posted @ 2017-02-08 12:08 小小灵爱李婷 阅读(284) 评论(0) 推荐(0)
C#检测键盘输入
摘要:void Update(){ if (Input.GetKey(KeyCode.W)) { go stread; } if (Input.GetKey(KeyCode.A)) { turn left; }} 阅读全文
posted @ 2016-12-19 17:40 小小灵爱李婷 阅读(441) 评论(0) 推荐(0)