- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 winform内嵌Unity3D打包的.exe
winform内嵌.exe的方式都大同小异,只不过这里记录一下Unity3D的设置,如果需要程序之间通讯,可以用socket,winform程序开服务器,unity程序客户端连接,这里不再搬砖了。一、首先是unity build设置canvas设置供参考二、winform程序新建一个winform工程,编辑一个窗口中间灰色是容器panel点击button可以打开unity build的程序嵌到panel(可以删除),这里我添加了加载窗口是自动打开unity build
2020-05-25 15:04:26 2820 2
原创 C# 反射
步骤一:获得类型//适用于已知类型名Type type= Type.GetType(“ClassName”);//适用于类型未知但已存在已有对象obj.GetType();//适用于已知类型typeof(ClassName)//适用于类型在另一个DLL//加载dllAssembly assembly = Assembly.Load(“DllName”); 或 Assembly assembl...
2020-05-09 16:09:25 163
原创 修改 VS2017 创建 CSharp 类的默认模板
模板默认路径:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class
2020-05-09 15:08:54 354
原创 Unity Editor输出Hierarchy面板选择物体的数量
using UnityEngine;using UnityEditor;public class RightMouseButtonMenu : Editor{ [MenuItem("GameObject/Get Selection Count", false, 0)] public static void GetSelectionCount(MenuCommand men...
2019-10-29 16:02:39 1588
原创 Windows10 运行窗口(win R)命令快捷打开程序
一、win+R或者右键的开始菜单,打开运行窗口。二、在运行中输入%windir%进入Window目录文件夹,或者直接从Win+E 在资源管理器地址栏输入%windir%。三、把需要快速启动的程序的快捷方式放入Window文件夹,把快捷方式改名为想要输入的命令,这里以vs2017为例。四、打开运行窗口,输入快捷方式名,确定就可以运行了。...
2019-10-24 15:59:53 4696 1
原创 Unity 添加,修改默认创建脚本模板
Unity 默认创建的脚本可以添加也可以修改,不需要修改Editor。一、找到模板目录\Editor\Data\Resources\ScriptTemplates二、如果要修改模板,直接打开修改就可以了,每个模板都是可以修改的。修改默认unity创建的脚本:三、如果需要添加模板,不改变原有模板。模板命名规则:序号-一级菜单名__二级菜单名-文件名.c...
2019-07-09 13:43:19 1226 1
原创 C# 快速排序 冒泡排序
快速排序: int[] MyQuickSort(int[] arr, int l, int r) { if (l < r) { int q = Partition(arr, l, r); MyQuickSort(arr, l, q - 1); ...
2018-07-23 20:52:57 339
EasyTouchV5.0.18.rar
2019-05-19
DirectX 11 Low Poly Shader 0.9beta
2018-08-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人