随笔分类 - Unity
摘要:1.新建Buttom2.panel里面加下拉buttomusing UnityEngine;using System.Collections;public class DropDownList : MonoBehaviour { public GameObject panel; void...
阅读全文
摘要:1.添加Button(Script)Using UnityEngine.UI;RectTransfrom reT = GetComponent();reT.sizeDelta = new Vector2(50, 50); //对应width,heightmomo按钮事件侦听:http://www....
阅读全文
摘要:生成AndroidStudio工程: (0)建立一个新工程;导入Unity生成的工程建立另一个export工程。 (1)把export工程libs下的unity-classes.jar文件拷贝到新工程的libs文件夹。然后,右键点击选择Add as Library。 (2)把export工程m...
阅读全文
摘要:获取摄像机视图窗口区域:camera.ViewportToWorldPoint(newVector3(0,1,10.0f)) void OnDrawGizmosSelected(){ print (camera.ViewportToWorldPoint (new Vector3 (0...
阅读全文
摘要:Rigidbody:Drag: 阻力Is Kinematic: 勾选则不受重力的影响,需要人为控制刚体Collision Detection: 碰撞检测模式http://game.ceeger.com/Script/Rigidbody/Rigidbody.collisionDetectionMode...
阅读全文
摘要:Handheld.Vibrate(); //震动效果using UnityEngine;using System.Collections;public class r : MonoBehaviour { public float speed = 200.0f; float oy = 0...
阅读全文
摘要:分割Png图片:Texture Type : Sprite (2D and UI) Sprite Mode: Multiple Sprite Editor - Slice - Applyhttp://blog.1vr.cn/?p=1422
阅读全文
摘要:Hotween:http://www.cnphp6.com/archives/45174Dotween(momo):http://www.xuanyusong.com/archives/3330 http://robertpenner.com/easing/easing_demo.h...
阅读全文
摘要:XDocument:Using System.XML.Linq;XDocumentxdoc=XDocument.Load(Application.dataPath+@"/myx.xml");XElementroot=xdoc.Root;foreach(varrinroot.Elements()){ ...
阅读全文
摘要:编辑器扩展 [RequireComponent] 等详解: http://jingyan.baidu.com/article/1974b2899b9fb9f4b1f7749d.htmlUnity 隐藏鼠标: Screen.showCursor = false;http://www.unitymanu...
阅读全文
摘要:介绍:http://blogs.unity3d.com/pt/2015/04/09/integrating-unity-ads/登陆:https://unityads.unity3d.com/admin/#/reports
阅读全文
摘要:.mov .mpg .mpeg .mp4 .avi .asfUnity圣典介绍: http://game.ceeger.com/Manual/VideoFiles.htmlMomo:http://www.xuanyusong.com/archives/1019视频播放:http://www...
阅读全文
摘要:http://unity3d.9tech.cn/news/2014/0410/40176.html
阅读全文
摘要:NGUI添加粒子特效时,被UI遮挡因为粒子系统的渲染顺序列默认为3000,而NGUI的渲染顺序默认也是从3000开始,当有嵌套的panel时或者Depth更高的panel时,GUI的渲染顺序会高于3000,解决办法是:1.修改Ngui中的UIPanel脚本中的默认的RenderQueue, 调整到3...
阅读全文
摘要:1.Canvas:1)Render Mode : Screen Space -Camera2)Render Camera : UICamera(自己创建的相机)3)Plane Distance : 02.Canvas Scaler:1)Ui Scale Mode : Scale with scree...
阅读全文
摘要:NGUI - UIRoot - Camera1.新建Layer层 - backgroundImg2.设置UIRoot层次为backgroundImg3.Dept : 设置与Main Camera一样,或者小于Main CameraMain Camera1. Clear Flags : Depth o...
阅读全文
摘要:Unity出错:Invalid editor window UIPrefabToolUnityEditor.EditorApplicationLayout:FinalizePlaymodeLayout()Solution :Layout - Revert Factory Settings ...
阅读全文
摘要:一 界面制作 :NGUI二 2D游戏制作 :2D Toolkit三 可视化编程 :PlayMaker四 插值缓动 :iTween,HOTween五 路径搜寻 :Simple Path六 美术及动画制作 :RageSpline,Smooth Moves七 画面增强 ...
阅读全文

浙公网安备 33010602011771号