IEnumerable与IEnumerator

作者:追风剑情 发布于:2019-7-17 10:36 分类:C#

一、IEnumerable与IEnumerator之间的关系 namespace System.Collections { public interface IEnumerable { IEnumerator GetEnumerator(); } } namespace System.Collections { pub...

阅读全文>>

标签: C#

评论(0) 浏览(4370)

C语言—printf()

作者:追风剑情 发布于:2019-7-16 21:34 分类:C

示例: #include <stdio.h> int main(void) { int x = 100;//十进制 int x1 = 0100;//八进制 int x2 = 0x100;//或0X100 十六进制 long x3 = 100L;//或100l long x4 = 020L; long x5 = 0x10L; long ...

阅读全文>>

标签: C语言

评论(0) 浏览(7338)

WWW

作者:追风剑情 发布于:2019-7-16 17:59 分类:Unity3d

示例一:实现一个简单的加载队列 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// WWW加载队列 /// </summary> public class WWWQueue : Mo...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3817)

C语言—浮点数

作者:追风剑情 发布于:2019-7-15 21:06 分类:C

示例 #include <stdio.h> int main(void) { int i = 1; float f = 2; float f1 = 2.13145; float f2 = 3.16E7;//3.16乘10的7次方 float f3 = 7.00; float f4 = 2e-8; printf("i=%d, f=%f, f1...

阅读全文>>

标签: C语言

评论(0) 浏览(4386)

C语言—sizeof()

作者:追风剑情 发布于:2019-7-10 20:46 分类:C

示例 #include <stdio.h> int main(void) { //最初K&R给出的关键字 int int_size = sizeof(int); int short_size = sizeof(short); int long_size = sizeof(long); int unsigned_size = sizeo...

阅读全文>>

标签: C语言

评论(0) 浏览(4884)

UGUI-文字颜色渐变效果

作者:追风剑情 发布于:2019-7-10 15:11 分类:Unity3d

示例 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 文本颜色渐变效果 /// </summary> public class GradientTextEffec...

阅读全文>>

标签: Unity3d

评论(0) 浏览(5087)

UGUI-EventTriggerType

作者:追风剑情 发布于:2019-7-10 10:07 分类:Unity3d

从EventTriggerType枚举中可以看出UGUI支持的事件有哪些。 namespace UnityEngine.EventSystems { /// <summary> /// 此类能够从指定的事件触发一个或多个远程函数 /// 用法:使用碰撞器将其附加到对象上,或附加到您选择的GUI图形上。 /// 注意:这样做将使该对象截...

阅读全文>>

标签: Unity3d

评论(0) 浏览(5000)

C语言—关键字和保留标识符

作者:追风剑情 发布于:2019-7-9 19:02 分类:C

ISO C关键字 粗体表示的是C90标准新增的关键字,斜体表示的C99标准新增的关键字,粗斜体表示的是C11标准新增的关键字。 auto extern short while ...

阅读全文>>

标签: C语言

评论(0) 浏览(3970)

委托——Delegate.CreateDelegate()

作者:追风剑情 发布于:2019-7-8 16:02 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; namespace ReflectionMethodsCache { class Program { ...

阅读全文>>

标签: C#

评论(0) 浏览(5644)

UGUI-UGUITool

作者:追风剑情 发布于:2019-7-5 13:35 分类:Unity3d

示例:工具类 using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; publi...

阅读全文>>

标签: Unity3d

评论(0) 浏览(5841)

UGUI-计算子项在容器中的Bounds

作者:追风剑情 发布于:2019-7-5 10:06 分类:Unity3d

示例 using System.Collections; using System.Collections.Generic; using UnityEngine; public static class UGUITool { /// <summary> /// 计算子项在容器中的Bounds(相对于Container的锚点) ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3560)

游戏资源打包

作者:追风剑情 发布于:2019-7-4 13:36 分类:Unity3d

[官方文档] AssetBundles [官方文档] BuildPipeline [官方文档] BuildOptions 导资源工具 (Unity 2019) using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using U...

阅读全文>>

标签: Unity3d

评论(0) 浏览(5323)

UGUI-Misc

作者:追风剑情 发布于:2019-7-3 21:24 分类:Unity3d

示例:演示了如何正确销毁对象 using System.Collections; using System.Collections.Generic; using UnityEngine; public static class Misc { // 销毁对象 static public void Destroy(UnityEngine.Object obj)...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3818)

安装Visual Assist X

作者:追风剑情 发布于:2019-7-2 20:02 分类:Unity3d

一、下载并安装Visual Assist X 百度网盘 提取码:yhyt 二、替换VA_X.dll 我的目录是C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\15.0_a624a622\Extensions\fs4k3ocg.05v\VA_X.dll 三、重启Visu...

阅读全文>>

标签: Unity3d

评论(0) 浏览(4748)

XmlDocument

作者:追风剑情 发布于:2019-7-1 22:09 分类:C#

示例: test.xml <?xml version="1.0" encoding="UTF-8"?> <root> <book name="《三国演义》">内容摘要</book> <book name="《水浒专》">内容摘要</book> </root> ...

阅读全文>>

标签: C#

评论(0) 浏览(4314)

C#与Lua相互调用

作者:追风剑情 发布于:2019-7-1 16:25 分类:C#

这里使用NLua库 GitHub https://github.com/NLua/NLua Lua教程 https://www.runoob.com/lua/lua-tutorial.html 示例代码 using System; using System.Collections.Gen...

阅读全文>>

标签: C#

评论(0) 浏览(5207)

C#中的结构体(struct)

作者:追风剑情 发布于:2019-7-1 14:39 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StructTest { class Program { static void Main(string[] args) ...

阅读全文>>

标签: C#

评论(0) 浏览(3676)

获取程序集信息(Assembly)

作者:追风剑情 发布于:2019-7-1 10:31 分类:C#

右键->属性->应用程序->程序集信息 示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; namespace Assembly...

阅读全文>>

标签: C#

评论(0) 浏览(3247)

语言集成查询 (LINQ)

作者:追风剑情 发布于:2019-6-28 16:18 分类:C#

示例一:从数组中查询数据 using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace LINQ { class Program { static voi...

阅读全文>>

标签: C#

评论(0) 浏览(3986)

CMake-gui

作者:追风剑情 发布于:2019-6-28 13:20 分类:C

下载 https://cmake.org/download/ Wiki https://gitlab.kitware.com/cmake/community/wikis/home 文档 https://cmake.org/documentation/ 一、下载并安装好CMake 二、写一个测试用的...

阅读全文>>

标签: C语言

评论(0) 浏览(5423)

WPF发布安装程序

作者:追风剑情 发布于:2019-6-26 21:25 分类:C#

一、下载并安装Visual Studio Installer https://marketplace.visualstudio.com/items?itemName=visualstudioclient.MicrosoftVisualStudio2017InstallerProjects 二、新建Setup Project工程 ...

阅读全文>>

标签: C#

评论(0) 浏览(6796)

WPF实现拖动

作者:追风剑情 发布于:2019-6-26 15:09 分类:C#

XAML官方文档 https://docs.microsoft.com/zh-cn/dotnet/framework/wpf/advanced/xaml-overview-wpf WPF实现拖动 示例:拖动UserControl 一、App.xml中定义拖动条样式 <Application x:Class="Test.App" xm...

阅读全文>>

标签: C#

评论(0) 浏览(9021)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号