Unity3D https ipv6

Unity3D 支持 https 请求,兼容 ipv6 only 网络 (1)使用 HttpWebRequest 进行 Https 访问 Unity 2018 版本之后,如果要使用 https 访问,直接使用替代 www 的 UnityWebRequest 即可,访问 https 只需要指定 certificateHandler 即可进行 https 权限验证

PowerShell 导出 Excel 为 Txt

使用 PowerShell 脚本导出 Excel 文件为文本文件 Txt 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 # export excel file to txt file $files = "aura", "spell", "missile" $excel = New-Object -ComObject Excel.Application $excel.Visible

Unity 2018.3 Prefab 保存方法

Unity 2018 改进了 prefab 使用方法,prefab 可以嵌套,双击 prefab 会在新场景中打开。下面是代码保存 prefab 的方法。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Unity3D 项目规范

项目规范相关 项目代码部分: 创建 Assembly Definition File 可以把当前目录作为一个程序集,变成 dll 文件,这样通过多个程序集来减少编译时间,如果程序集 A 和 B 互相引用,那

Unity3D 粒子工具

用于统计粒子特效信息,比如粒子个数、三角面数 一般粒子需要统计的信息有 1 2 3 4 5 public int triangles; public bool prewarm = false; public int distortion; public int particleCount; public int materialCount; 粒子中可能包含一些模型,所以

常用 CMD 命令

常用 CMD 命令 计划任务.bat 1 2 schtasks /delete /tn MyTask /f schtasks /create /tn MyTask /tr D:\Build10\start.bat /sc once /f /st 00:10:00 /sd 2019/01/04 start.bat 1 2 cd /d D:\Build11 GameConsole ip=118.25.123.57 port=8503 注意 cd 命令,否则需要手动在计划任务中设置 起始于 (start in) 选项才

自动生成 Protocol 的 CSharp 文件

通过 Protocol Buffer 配置文件自动生成 CSharp 文件的 PowerShell 程序 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

Real-Time Rendering 4th edition 学习笔记

Chapter 2 The Graphics Rendering Pipeline Application -> Geometry Processing -> Rasterization -> Pixel Processing Application Stage The developer has full control to determine the implementation. For example, an application stage algorithm or setting could decrease the number of triangles to be rendered. At the end of application stage, the geometry to be rendered is fed to the geometry processing stage. The rendering primitives: points, lines, triangles. To increase performance,

Unity3D-优化相关

Unity每次在准备数据并通知GPU渲染的过程称为一次Draw Call。一般情况下,渲染一次拥有一个网格并携带一种材质的物体便会使用一次Dr

Unity3D EditorWindow Table

EditorWindow 中显示表格,类似 Profiler 窗口中的数据显示。先用 Tools 菜单创建 asset 数据,然后在 EditorWindow 中显示。 ProfilerData.cs 1 2 3 4 5 6 7 8 using System.Collections; using System.Collections.Generic; using UnityEngine; public class ProfilerData : ScriptableObject { public List<ProfilerDataElement> dataList = new List<ProfilerDataElement>(); } ProfilerDataElement.cs 1 2 3