随笔分类 -  Unity&Script

摘要:public static class ListUtils{ public static void Shuffle(this IList list) { int count = list.Count; while (count > 1) { ... 阅读全文
posted @ 2014-10-22 13:38 ing... 阅读(144) 评论(0) 推荐(0)
摘要:using System;using System.IO;using System.Runtime.InteropServices;using UnityEngine;public class CSVReader : IDisposable{ private bool m_disposed; ... 阅读全文
posted @ 2014-10-22 13:36 ing... 阅读(188) 评论(0) 推荐(0)
摘要://EDITOR CLASS TO CREATE QUAD MESH WITH SPECIFIED ANCHOR//Created by Alan Thorn on 23.01.2013//------------------------------------------------using U... 阅读全文
posted @ 2014-10-20 22:22 ing... 阅读(315) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;using System.Collections.Generic;public class TestSceneData : MonoBehaviour{ public string PlayerName = ... 阅读全文
posted @ 2014-10-20 22:18 ing... 阅读(127) 评论(0) 推荐(0)
摘要:强制设置当前选择的物体为父对象 Selection.activeGameObject =target.transform.parent.gameObject; 阅读全文
posted @ 2014-10-17 16:47 ing... 阅读(233) 评论(0) 推荐(0)
摘要:http://blog.163.com/kingmax_res/blog/static/77282442201031712216508/先介绍一些基本函数(具体用法自己查文档):--------------------------------------------------------1.场景切... 阅读全文
posted @ 2014-10-13 15:33 ing... 阅读(5174) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;public class CarGUI : MonoBehaviour{ private const float FPS_UPDATE_INTERVAL = 0.5f; private float fp... 阅读全文
posted @ 2014-10-11 18:09 ing... 阅读(160) 评论(0) 推荐(0)
摘要:http://www.unitymanual.com/home.php?mod=space&uid=2452&do=blog&id=420using UnityEngine;using System.Collections;public class TestSprite : MonoBehaviou... 阅读全文
posted @ 2014-10-11 13:20 ing... 阅读(3499) 评论(0) 推荐(0)
摘要:Handheld.Vibrate(); 阅读全文
posted @ 2014-09-30 09:48 ing... 阅读(284) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/ybgame/p/3844315.html最近开始接手新手引导的开发,记录下这块相关的心得首先客户端是Unity,在接手前,前面的同学已经初步完成了新手引导框架的搭建,这套框架比较简单,有优点也有缺点,稍后一一点评我们的新手引导是由一个个强引导组成的,每... 阅读全文
posted @ 2014-09-29 13:52 ing... 阅读(560) 评论(0) 推荐(0)
摘要:// 正则表达式 不管多少个空格替换为一个空格 string new_str = Regex.Replace(m_TextAsset.text.Trim(), "\\s+", " "); 阅读全文
posted @ 2014-09-28 10:33 ing... 阅读(204) 评论(0) 推荐(0)
摘要:(后面就是代码了,我就不翻译了。)#!/usr/bin/perl use File::Copy; my $installPath = $ARGV[0]; #the name that displays on the iPhone my $bundleDisplay... 阅读全文
posted @ 2014-09-27 12:02 ing... 阅读(225) 评论(0) 推荐(0)
摘要:ExportAssetBundles.rar// C# Example// Builds an asset bundle from the selected objects in the project view.// Once compiled go to "Menu" -> "Assets" a... 阅读全文
posted @ 2014-09-26 10:09 ing... 阅读(1415) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/nateyang/article/details/75678311.导出。unity3d格式资源: http://game.ceeger.com/Script/BuildPipeline/BuildPipeline.BuildAssetBundle.htm... 阅读全文
posted @ 2014-09-19 13:35 ing... 阅读(1552) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;using NPOI;using Ionic.Zip;using System.IO;using NPOI.HSSF.UserModel;using NPOI.SS.UserModel;using System.T... 阅读全文
posted @ 2014-09-17 14:43 ing... 阅读(297) 评论(0) 推荐(0)
摘要:http://overlord3001.blog.163.com/blog/static/742212720113110343972/?latestBlog从max导出FBX到Unity,以下环节需要特别注意。1,单位设置 很多人在建模,动画的时候,默认的max system unit是设置的inc... 阅读全文
posted @ 2014-09-17 13:42 ing... 阅读(4720) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;public class EffectManager : MonoBehaviour { public Animator[] Animators; public float amplify; p... 阅读全文
posted @ 2014-09-17 13:39 ing... 阅读(287) 评论(0) 推荐(0)
摘要:using UnityEngine;namespace Com.Xyz.UI{ [ExecuteInEditMode] [RequireComponent(typeof(UIRoot))] public class UIScreenAdaptive : MonoBehaviour ... 阅读全文
posted @ 2014-09-16 14:13 ing... 阅读(168) 评论(0) 推荐(0)
摘要:http://blog.dou.li/UnityVS1_8_2-VS2013.html备整合UnityVS1.8.2和VS2013调试Unity3D代码,安装后会有些问题无法调试,详情继续往下看。UnityVS安装第1步UnityVS1.8.2-VS2013.rar(6806.6 KB, 下载次数:... 阅读全文
posted @ 2014-09-15 14:43 ing... 阅读(513) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/akof1314/article/details/38845933设有一张png/tga图集,导入到Unity,放置目录"Assets/Resources/UI"(UI文件夹可替换成其他的,重要的是要在"Assets/Resources/"路径下),默认为如... 阅读全文
posted @ 2014-09-13 22:58 ing... 阅读(535) 评论(0) 推荐(0)