<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[main_hello的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/main_hello</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; main_hello]]></copyright><item><title><![CDATA[面试问题汇总]]></title><link>https://blog.csdn.net/main_hello/article/details/137824359</link><guid>https://blog.csdn.net/main_hello/article/details/137824359</guid><author>main_hello</author><pubDate>Thu, 18 Apr 2024 23:02:39 +0800</pubDate><description><![CDATA[面试问题汇总]]></description><category></category></item><item><title><![CDATA[unity c# 事件监听与广播(更好的处理方法)]]></title><link>https://blog.csdn.net/main_hello/article/details/137482000</link><guid>https://blog.csdn.net/main_hello/article/details/137482000</guid><author>main_hello</author><pubDate>Sun, 07 Apr 2024 23:12:26 +0800</pubDate><description><![CDATA[关于全局的事件监听]]></description><category></category></item><item><title><![CDATA[unity c# 事件监听与广播]]></title><link>https://blog.csdn.net/main_hello/article/details/137434593</link><guid>https://blog.csdn.net/main_hello/article/details/137434593</guid><author>main_hello</author><pubDate>Sat, 06 Apr 2024 18:41:17 +0800</pubDate><description><![CDATA[事件监听与广播]]></description><category></category></item><item><title><![CDATA[C# GC垃圾]]></title><link>https://blog.csdn.net/main_hello/article/details/137135045</link><guid>https://blog.csdn.net/main_hello/article/details/137135045</guid><author>main_hello</author><pubDate>Fri, 29 Mar 2024 17:05:22 +0800</pubDate><description><![CDATA[当前对C#内存管理的理解，有问题或者补充可以评论]]></description><category></category></item><item><title><![CDATA[UNITY编辑器拓展之自定义UNITY ToolBar]]></title><link>https://blog.csdn.net/main_hello/article/details/125234214</link><guid>https://blog.csdn.net/main_hello/article/details/125234214</guid><author>main_hello</author><pubDate>Sat, 11 Jun 2022 14:15:11 +0800</pubDate><description><![CDATA[UNITY编辑器拓展之自定义UNITY TOOLBAR]]></description><category></category></item><item><title><![CDATA[this can happen if layout contains custom windows and there are comple errers in the project解决方案]]></title><link>https://blog.csdn.net/main_hello/article/details/114301636</link><guid>https://blog.csdn.net/main_hello/article/details/114301636</guid><author>main_hello</author><pubDate>Wed, 03 Mar 2021 10:36:41 +0800</pubDate><description><![CDATA[this can happen if layout contains custom windows and there are comple errers in the project
解决方案：
1：把C:\Users\Administrator\AppData\Roaming\Unity\Editor-5.x\Preferences\Layouts\default文件里面的Default.wlt文件里的内容复制下来
2：打开你项目中的\Library中的CurrentLayout-default.dw.]]></description><category></category></item><item><title><![CDATA[Unity动态加载切割后sprite的资源]]></title><link>https://blog.csdn.net/main_hello/article/details/111870341</link><guid>https://blog.csdn.net/main_hello/article/details/111870341</guid><author>main_hello</author><pubDate>Mon, 28 Dec 2020 17:02:55 +0800</pubDate><description><![CDATA[Unity动态加载sprite资源
    public class LoadingSprite : MonoBehaviour
    {
        private SpriteAtlas headAtlas;
        /// &lt;summary&gt;
        /// 动态加载资源
        /// &lt;/summary&gt;
        /// &lt;typeparam name="T"&gt;&lt;/typeparam&gt;
        /// &]]></description><category></category></item><item><title><![CDATA[再谈c#的list，从底层实现原理来分析，以及简单的优化]]></title><link>https://blog.csdn.net/main_hello/article/details/110954255</link><guid>https://blog.csdn.net/main_hello/article/details/110954255</guid><author>main_hello</author><pubDate>Thu, 10 Dec 2020 16:21:26 +0800</pubDate><description><![CDATA[因为最近经常用到list，所以对它可以动态调节长度很感兴趣，决定一探究竟，结果还真发现了一些有意思的东西；

大家看下面的代码：


 List&lt;int&gt; list = new List&lt;int&gt;();
 Console.WriteLine("list当前长度：" + list.Capacity + ";list有效长度" + list.Count);
 list.Add(1);
 Console.WriteLine("list当前长度：" + list.Capacity + ";l]]></description><category></category></item><item><title><![CDATA[从CPU和GPU出发的UGUI优化]]></title><link>https://blog.csdn.net/main_hello/article/details/109894313</link><guid>https://blog.csdn.net/main_hello/article/details/109894313</guid><author>main_hello</author><pubDate>Sat, 21 Nov 2020 15:55:48 +0800</pubDate><description><![CDATA[UGUI优化



就在前几天去B站面试实习岗位，发现学习的方向出现了一些小问题

对UGUI的优化理解出现了不小问题，面试之后，查询了不少的文章，并吸取他们的知识，对UGUI有了一定的理解，希望可以避免再出现类似的问题

下面我便记录一下UGUI



首先作为Unity自带的UI系统，它具有以下的优点：

  1.可视化编程：在Scene窗口可编辑

  2.智能的Sprite packe可以讲图片按tag自动生成图集而不需要人工维护，生成的图集合并方式合理，无冗余资源

  3.UGU...]]></description><category></category></item><item><title><![CDATA[LIst＜＞ 与 arrayList 区别]]></title><link>https://blog.csdn.net/main_hello/article/details/108408117</link><guid>https://blog.csdn.net/main_hello/article/details/108408117</guid><author>main_hello</author><pubDate>Fri, 04 Sep 2020 19:34:51 +0800</pubDate><description><![CDATA[今天在看视频的时候，up讲到数据库的时候，讲到List&lt;object&gt;可以替换成ArrayList


//第一种写法
public List&lt;List&lt;object&gt;&gt; SelectMultipleData(string sqlQuery)
{

}

//第二种写法
public List&lt;ArrayList&gt; SelectMultipleData(string sqlQuery)
{

}



也就是说List&lt;object&gt;与ArrayL]]></description><category></category></item><item><title><![CDATA[UNITY-关于读取数据库的代码使用]]></title><link>https://blog.csdn.net/main_hello/article/details/108392722</link><guid>https://blog.csdn.net/main_hello/article/details/108392722</guid><author>main_hello</author><pubDate>Thu, 03 Sep 2020 20:46:54 +0800</pubDate><description><![CDATA[Unity 使用数据库要先导入三个dll （Mono.Data.Sqlite \ System.Date \ Sqlite3）



首先找到Unity源路径找到前两个dll （这个dll只能使用自己的）



三个dll都需要放到Assets/Pligins(该文件夹需要自己创建) Unity2018放进去会报错，把System.Date删掉就好了

此次使用的SQL软件是SQList一款轻量级数据库软件



数据库主要学三个类 ： SqliteCommand(数据库连接对象) \ SqliteCo..]]></description><category></category></item><item><title><![CDATA[UNITY 摄像机基础—Camera控件的操作（不包含代码，只是Inspector界面的操作）]]></title><link>https://blog.csdn.net/main_hello/article/details/108164457</link><guid>https://blog.csdn.net/main_hello/article/details/108164457</guid><author>main_hello</author><pubDate>Sat, 22 Aug 2020 10:16:46 +0800</pubDate><description><![CDATA[摄像机——Camera控件的操作









Clear Flags : 设置拍摄画面的背景

1.Skybox：天空盒

2.Solid Color ：纯色，背景都是一个颜色

3.Depth only ：仅仅看深度，渲染仅与深度有关，（官方示例：在第一人称射击中用摄像机把主角和地图分开，一个摄像机只拍摄主角的手和枪，把画面放置到合适位置，另一个摄像机渲染地图，这样可以把我们的场景和枪械分开处理）

4.Don't Clear ...]]></description><category></category></item><item><title><![CDATA[实现鼠标与游戏的交互（与游戏中的物品交互）]]></title><link>https://blog.csdn.net/main_hello/article/details/108062511</link><guid>https://blog.csdn.net/main_hello/article/details/108062511</guid><author>main_hello</author><pubDate>Mon, 17 Aug 2020 19:28:15 +0800</pubDate><description><![CDATA[我们这里用到的是射线中的鼠标屏幕射线 ScreenPointToRay




//射线

Ray ray = new Ray（Position startPosition, Position EndPosition）

//返回鼠标坐标

Input,mousePosition()

以上部分可参考开发者文档







//拿到鼠标在屏幕的射线

Ray r = Camera.main.ScreenPointToRay(Input.mousePosition);

//检测场景中的物体

if(...]]></description><category></category></item><item><title><![CDATA[UNITY单击和双击实现]]></title><link>https://blog.csdn.net/main_hello/article/details/108062213</link><guid>https://blog.csdn.net/main_hello/article/details/108062213</guid><author>main_hello</author><pubDate>Mon, 17 Aug 2020 19:26:13 +0800</pubDate><description><![CDATA[//是否有一次单击
private bool hasOneClock = false;
//默认双击时间间隔
public float doubleClickInterval = 0.5f;
//计时器
private float  timer = 0；

void  Update()
{
    //如果完成第一次点击，开始计时
    if(hasOneClick)
    {
        timer += Time.deltaTime; 
    }

    if(Input.GetMo...]]></description><category></category></item><item><title><![CDATA[设计模式六大原则—C#]]></title><link>https://blog.csdn.net/main_hello/article/details/107670515</link><guid>https://blog.csdn.net/main_hello/article/details/107670515</guid><author>main_hello</author><pubDate>Wed, 29 Jul 2020 18:29:20 +0800</pubDate><description><![CDATA[设计模式六大原则—C#

前言：最近看到zhengzhb写得对设计模式六大原则的刨析，根据他所讲的，并把理解整理到自己的博客上。使自己忘记的时候可以通过阅读自己的这篇文章快速想起来。如果你们想了解的话可以移步http://www.uml.org.cn/sjms/201211023.asp，他讲的要比我整理的更详细



设计模式六大原则：

（1）单一职责原则

（2）里氏替换原则

（3）依赖倒置原则

（4）接口隔离原则

（5...]]></description><category></category></item><item><title><![CDATA[终于，属于我的第一篇博客诞生了]]></title><link>https://blog.csdn.net/main_hello/article/details/107617620</link><guid>https://blog.csdn.net/main_hello/article/details/107617620</guid><author>main_hello</author><pubDate>Mon, 27 Jul 2020 19:39:04 +0800</pubDate><description><![CDATA[终于，属于我的第一篇博客诞生了

前言

很幸运，在高中毕业的时候选择了软件工程专业，大学三年也学到了很多知识，但遗憾的是当时并没有记笔记和做博客的习惯，很多知识都随着时间淡化了，即将面临大四的就业，觉得有必要做出一些改变，大概一个月前，开始学习unity并着手写云笔记，初有成效，不仅整理知识点时候可以加深感悟，在偶尔忘记的时候也可以检索出来再看一遍，本着存在即合理，我决定进军博客，在CSDN上构建属于自己的博客。



初心

既然是第一篇...]]></description><category></category></item></channel></rss>