- 博客(9)
- 收藏
- 关注
原创 场景切换变暗问题
To fix it in the Editor, go to Window -> Lighting -> Lightmap Tab -> Disable Continuous Baking -> Press Build to bake the lighting once manually.
2016-12-27 09:51:45
806
原创 unity改变物体轴心
改变物体轴心的方法有两种: (1)再导入模型之前就在3DMAX中修改轴心; (2)导入unity中修改方式:先建立一个空物体,将其轴心位置调整为为你需要的轴心位置,再将需要需要改变轴心的物体成为这个空物体的自物体就行了;
2016-12-26 17:57:09
22212
6
原创 Unity通过父物体找到所有子物体
sing UnityEngine; using System.Collections; public class GameSchedule : MonoBehaviour { private GameObject UI; void Awake() { UI = GameObject.Find("UIRoot"); } vo
2016-12-05 11:06:54
5372
原创 unity场景切换异步加载
using UnityEngine; using System.Collections; public class GameSchedule : MonoBehaviour { private GameObject Schedule;//进度条slider AsyncOperation acOp; float i = 0; void Awake() { Schedule =
2016-11-29 00:14:25
1175
原创 C++单链管理学生信息
#include #include using namespace std; class List { public: List(){create_List();} ~List(){clear();} //创建头结点 void create_List(); //插入函数 void insert( const string& N, const string& SN, co
2016-11-29 00:03:01
479
原创 c++简单的单链
#include using namespace std; //定义节点 struct linkedlist { int data; linkedlist *next; }; //初始化 linkedlist*init(); //添加数据 linkedlist*AddData(linkedlist*ls,int des_data); //获取链表长度
2016-11-27 22:57:29
673
原创 c++常用容器简单操作
#include #include #include #include #include #include using namespace std; int main(int argc, char *argv[]) { //原始数组 int a[4]={9,5,3,4}; for(int i=0;isizeof(a)/sizeof
2016-11-27 13:11:28
470
原创 c++指针冒泡排序
#include using namespace std; int main() { int a[8]={9,10,16,30,14,7,18,12}; int*t=a; for(int*i=t;i { for(int*j=i+1;j { if(*i>*j) { int temp=*i; *i=*j; *j=temp; } } } for each (int
2016-11-24 23:59:42
1434
原创 单例模式中饿汉模式
class Student { private static readonly Student student = new Student();//静态初始化的时候同时实例化; private Student() { }//将构造方法私有化,防止实例化; public static Student Getstudent()
2016-09-25 12:24:14
450
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅