摘要: 出自:https://www.jianshu.com/p/103a11534ee4 重要的API: VRTK_DeviceFinder类:用于在场景中寻找左右手柄、头显、返回硬件编号或手柄,头显的gameobject。 GameObject rightHand = VRTK_DeviceFinder 阅读全文
posted @ 2019-12-25 20:49 C#初学者—Damon 阅读(1422) 评论(0) 推荐(0) 编辑
摘要: using System.Collections;using System.Collections.Generic;using UnityEngine;using Vuforia;public class CameraSetting : MonoBehaviour{ private bool isC 阅读全文
posted @ 2019-12-18 15:19 C#初学者—Damon 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: //带UI截屏 public void OnScreenShotClick() { DateTime now = DateTime.Now; string times = now.ToString(); times = times.Trim(); times = times.Replace("/", 阅读全文
posted @ 2019-12-17 10:33 C#初学者—Damon 阅读(837) 评论(0) 推荐(0) 编辑
摘要: 在Hierachy中选中物体,那么它以及它的子物体的mesh,会合并成为一个mesh,并且保存到Project中,可以多选,选择几个物体就会生成几个合并的mesh 新建脚本MeshCombine放到Editor文件夹中using System.IO;using UnityEditor;using U 阅读全文
posted @ 2019-12-07 11:27 C#初学者—Damon 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: Server端代码: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Net;using Syste 阅读全文
posted @ 2019-11-29 20:23 C#初学者—Damon 阅读(791) 评论(0) 推荐(0) 编辑
摘要: Unity3D 加载场景有很多种方式,做一些小的 DEMO 的时候往往是直接使用 Application.LoadLevel 或者 Application.LoadLevelAsync 函数加载场景,具体可查看(http://www.xuanyusong.com/archives/1427),但是这 阅读全文
posted @ 2019-11-06 20:38 C#初学者—Damon 阅读(606) 评论(0) 推荐(0) 编辑
摘要: Unity 使用物理射线(Physics.Raycast),实现扇形(Fan-Shaped)区域碰撞检测。参考之前的制作简单AI: Unity 有限状态机(Finite State Machine)的理解 与 实现简单的可插拔(Pluggable)AI脚本对象。源码:GentleTank/Plugg 阅读全文
posted @ 2019-11-01 19:50 C#初学者—Damon 阅读(3137) 评论(0) 推荐(0) 编辑
摘要: 对象池 using System.Collections;using System.Collections.Generic;using UnityEngine; public class ObjectPool{ private static ObjectPool instance; /// <sum 阅读全文
posted @ 2019-10-29 14:52 C#初学者—Damon 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 1、套接字编程 Socket:套接字 套接字是支持TCP/IP协议的网络通讯的基本操作单元,可以将套接字看做不同主机的进程进行双向通讯的端点,它构成了单个主机内及整个网络间的编程界面。 IP地址(Internet Protacol): 是互联网设备之间传输数据的一种协议,IP地址就是给每个连接在因特 阅读全文
posted @ 2019-10-17 16:49 C#初学者—Damon 阅读(4172) 评论(0) 推荐(0) 编辑
摘要: 一、网络分层 网络上的计算机之所以可以互相通信,是因为它们之间都遵守互相都可以“认识”的互联网协议(就如同人交流一样,两个人能够交流,互相必须知道对象的语言),互联网上的计算机互相通信又归根于网络中层与层之间的通信,OSI模型把网络通信分成七层:物理层、数据链路层、网络层、传输层、会话层、表示层和应 阅读全文
posted @ 2019-10-16 20:20 C#初学者—Damon 阅读(569) 评论(0) 推荐(0) 编辑