Excel导出某列数据到txt文件

作者:追风剑情 发布于:2014-8-23 17:45 分类:VBA

测试文件版本Excel 2007 测试数据文件 添加开发工具菜单 创建一个宏 编写模块代码 创建向导窗口 为窗口编写功能代码 以下为运...

阅读全文>>

标签: VBA

评论(0) 浏览(18930)

UILabel设置行间距

作者:追风剑情 发布于:2014-8-22 17:44 分类:NGUI

using UnityEngine; using System.Collections; public class TestUILabel : MonoBehaviour { public UILabel label; public int hspacing = 2; public int vspacing = 2; // Use this for...

阅读全文>>

标签: NGUI

评论(0) 浏览(6648)

delegate

作者:追风剑情 发布于:2014-8-19 20:50 分类:C#

using System; namespace DelegateTest { public delegate string MyMethodDelegate(int i); class Program { static void Main(string[] args) { TestClass t...

阅读全文>>

标签: C#

评论(0) 浏览(6564)

邻接矩阵转邻接表

作者:追风剑情 发布于:2014-8-17 10:56 分类:Algorithms

程序语言 C++ 开发工具 Visual Studio2010 #include <stdlib.h> #include <stdio.h> #include <string.h> #define MAXVEX 5 //图中最大顶点数 ////////////////////////////////////////////...

阅读全文>>

标签: Algorithms

评论(0) 浏览(4460)

图的存储结构——邻接表

作者:追风剑情 发布于:2014-8-16 12:06 分类:Algorithms

邻接表是图的一种链式存储结构。所占空间与边数有关,适合存储稀疏图。一个图的邻接矩阵表示是唯一的,但其邻接表表示不唯一。 程序语言 C++ 开发工具 Visual Studio2010 #include <stdlib.h> #include <stdio.h> #define MAXVEX 5 /*图中最大顶点数*/ //定义顶点类型为...

阅读全文>>

标签: Algorithms

评论(0) 浏览(3836)

NavMeshAgent

作者:追风剑情 发布于:2014-8-13 21:57 分类:Unity3d

https://docs.unity3d.com/cn/2019.4/Manual/class-NavMeshAgent.html 注意:NavMeshAgent 与 Rigidbody 同时挂在角色身上会引起抖动。 一、搭建一个场景 二、设置不可走区域 三、烘焙不可走区域 点...

阅读全文>>

标签: Unity3d

评论(0) 浏览(6072)

Regex.Replace()

作者:追风剑情 发布于:2014-8-6 16:30 分类:C#

开发工具 Visual Studio 2010 using System; using System.Text.RegularExpressions; namespace RegularExpressionsTest { class Program { static void Main(string[] args) { ...

阅读全文>>

评论(0) 浏览(4199)

Timer

作者:追风剑情 发布于:2014-8-6 15:13 分类:C#

开发工具 Visual Studio 2010 using System; using System.Timers; namespace TestTimer { class Program { private static Timer aTimer; static void Main(string[] arg...

阅读全文>>

评论(0) 浏览(8963)

读写文件

作者:追风剑情 发布于:2014-8-3 13:52 分类:C#

开发工具 Visual Studio 2010 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FileAccessTest { class Program { ...

阅读全文>>

标签: C#

评论(0) 浏览(3289)

狄克斯特拉(Dijkstra)算法

作者:追风剑情 发布于:2014-8-2 20:15 分类:Algorithms

Dijkstra是求解某点到其他各点的最短路径算法。 开发工具 Visual Studio2010 #include <stdlib.h> #include <stdio.h> const int MAXVEX = 6;//最大顶点数 const int INF = 429496729;//无路径时的权值 /** * 狄克...

阅读全文>>

标签: Algorithms

评论(0) 浏览(8054)

EditorWindow

作者:追风剑情 发布于:2014-7-30 21:00 分类:Unity3d

using UnityEngine; using UnityEditor; using System.Collections; static public class CustomMenu { [MenuItem("Custom/Create Window", false, 9)] static public void CreateWindow(){ ...

阅读全文>>

标签: GUI

评论(0) 浏览(3960)

Lighting Model函数

作者:追风剑情 发布于:2014-7-28 22:38 分类:Shader

Shader "Custom/LightingMyForwardLit" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" } LOD 200 //.1 Pass { Tags {"LightMode"...

阅读全文>>

标签: Shader

评论(0) 浏览(3061)

smcs.rsp

作者:追风剑情 发布于:2014-7-28 14:43 分类:Unity3d

创建Unity的预编译文件 在你的Assets目录下面添加smcs.rsp文件,预编译是在启动U3D时候运行的。 示例: 在smcs.rsp中定义两个宏  -define:MACROS_1  -define:DEBUG using UnityEngine; using System.Collections; public class smcsT...

阅读全文>>

评论(0) 浏览(14648)

弹跳的小球

作者:追风剑情 发布于:2014-7-26 21:49 分类:Unity3d

一、导入Physic Materials 二、新建个Plane、Sphere 三、运行效果 物理材质的设置 (1)摩擦因子的设定 滑动摩擦因子或静摩擦因子的取值范围为0~1,当滑动摩擦因子或静摩擦因子取值为0时,被此材质控制的对象将拥有冰的效果,摩擦...

阅读全文>>

标签: Rigidbody

评论(0) 浏览(3427)

Surface Shader和Deferred渲染路径

作者:追风剑情 发布于:2014-7-26 11:48 分类:Shader

实验目的:在Deferred渲染路径下ForwardBass是否会被执行? Shader "Custom/noDeferredSurf_1" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" } LOD 200 ...

阅读全文>>

标签: Shader

评论(0) 浏览(3738)

exclude_path:prepass

作者:追风剑情 发布于:2014-7-24 20:59 分类:Shader

Shader "Custom/ExcludePathPrepass" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" } LOD 200 CGPROGRAM //exclude_path:prepas...

阅读全文>>

标签: Shader

评论(0) 浏览(6303)

《简单逻辑学》

作者:追风剑情 发布于:2014-7-23 22:38 分类:读书笔记

改变思维方式第一书 1、逻辑、思维是无法感知的 思维分为两种类型:抽象(逻辑)思维、形象(直感)思维 人们在社会实践中对客观事物的认识要经过两个阶段: 第一阶段:直接接触外界事物,在大脑中产生感觉、知觉和表象,即感性认识阶段。 第二阶段:对综合感觉的材料进行整理和改造,逐步把握事物的本质和规律性,从而形成概念,构成判断(命题)和推理,即理...

阅读全文>>

评论(0) 浏览(3678)

加载AssetBundle

作者:追风剑情 发布于:2014-7-23 0:11 分类:Unity3d

一、放几个资源在Assets/StreamingAssets/下 如图: 二、DyScript.cs挂在ScriptPrefab.prefab上,然后把DyScript、ScriptPrefab、txt、tex打包成一个AssetBundle取名为ALL.assetbundle 三、新建个脚本并挂在场景中的任意一个物体上,脚本代码下如: ...

阅读全文>>

标签: AssetBundle

评论(0) 浏览(4875)

GUI.DragWindow()

作者:追风剑情 发布于:2014-7-21 22:14 分类:GUI

using UnityEngine; using System.Collections; public class GUIDragWindow : MonoBehaviour { Rect windowRect = new Rect (20, 20, 250, 250); void OnGUI () { windowRect = GUI.Window (0, wind...

阅读全文>>

标签: DragWindow

评论(0) 浏览(8024)

漫反射和Lambert

作者:追风剑情 发布于:2014-7-19 23:43 分类:Shader

一、创建一个Cube和一个Directional light,并把光源颜色调成蓝色。 二、创建漫反射Shader Shader "Custom/Shader_Lambert" { Properties { _MainTex("MainTex",2D)="white"{} } SubShader { pass{ Tags{"LightMode"="...

阅读全文>>

标签: Lambert

评论(0) 浏览(13560)

《安静》

作者:追风剑情 发布于:2014-7-19 22:18 分类:读书笔记

内向者通常具有的特质: 善思辨、理智、好学、谦和、敏感、有思想、庄重、慎思、思想精妙、内省、内显、温润、冷静、谦逊、喜静不喜动、腼腆、迟钝、脸皮薄 外向者通常具有的特质: 热情奔放、胸襟开阔、善交际、合群、易激动、居高临下、行动果决、活跃、爱出风头、脸皮厚、张扬、大大咧咧、无所畏惧、爱抛头露面

阅读全文>>

评论(0) 浏览(3431)

光照贴图(Lightmap)

作者:追风剑情 发布于:2014-7-18 22:02 分类:Unity3d

利用已经整合到Unity中的Beast来烘焙光照贴图 一、创建个Plane、Cube、Point light 二、把Plane、Cube设置为Lightmap Static 三、打开Bake面板,对场景进行灯光贴图烘焙。 Window->Lightmapping 四、灯光贴图烘...

阅读全文>>

标签: Lightmap

评论(0) 浏览(5703)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号