
unity3d
wanglang3081
这个作者很懒,什么都没留下…
展开
-
Unity 3D: Working with touch input
In this tutorial we'll walk through how to handle single and multi-touch input in Unity. Note that this tutorial is based on Unity 4. The scripts have been written and tested on version 4.5.1. As ma转载 2015-08-16 13:47:27 · 685 阅读 · 0 评论 -
Kinect结合Unity3D引擎开发体感游戏(一
1最近公司项目需要做科技馆的体感游戏,以前也没接触过游戏,虽然以前自己也是想做游戏,我想大部分都是学编程出来来做游戏,哈哈(请允许我淫笑一下,终于可以做这方面)。虽然以前没接触过体感游戏,看到的体验也是大部分看到的视频,幸好现在网络还是比较发达,上网大概了体感游戏开发,目前比较好的是Unity3D和Kinect结合交互进行开发。现在心里的感觉用句话说:哥现在也走在世界技术最前言,TMD碉堡了!转载 2013-12-16 14:05:07 · 24597 阅读 · 3 评论 -
Unity赛车教程第三部分
第三部分:Underthe Hood(内部脚本) 我们已经介绍了如何从一个三维模型,脚本和内置组件来组装一辆运行的车。我们也了解了可见的变量,以及它们可以怎样来调整汽车的行为。现在是时候我们来更深入的了解汽车引擎内部的精密机械 ——汽车的脚本。 双击Car.js脚本,你的代码编译器会打开它。 咋一看这个脚本超过500行的代码和注释以及非常多的变转载 2013-11-17 11:10:14 · 10471 阅读 · 2 评论 -
Unity官网赛车教程第二部分—调整赛车
在Unity中创建一个赛车游戏第二部分:调整赛车完成了教程的上一步之后,赛车已经有了不错的效果。但在赛道跑上几圈,我们明显的感觉到赛车不太完美,仍需改进。现在我们开始优化,当我们开发游戏时,好的优化将会使我们的游戏更加有趣,具有挑战性,更加完美,除此以外,还能达到我们的其他目标。具体来说,当我们初步完成游戏并开始测试时,多多少少有些地方不尽如人意。比如说我们希望使赛车的转载 2013-11-17 11:11:42 · 6716 阅读 · 0 评论 -
发布应用到AppStore
发布应用到AppStore今天我们介绍如何将我们做好的App上传到App Store。在这之前,你要准备好如下几样东西:1. 已开发好的应用程序2. 几幅960*640或960*600或640*960或640*920大小的屏幕截图3. 6个程序小图标,具体要求请参考:http://blog.youkuaiyun.com/htttw/article/details/79814转载 2013-10-03 13:42:53 · 748 阅读 · 0 评论 -
Unity3d与iOS的交互(1)
Unity3d与iOS的交互(1)今天我们介绍Unity3d与iOS交互第一部分:iOS传消息到Unity3d中。下面我们开始吧:1.首先用Unity3d创建一个Plain,并调整好摄像机的角度以及光源的位置,如下所示:2.然后我们创建一个Cube,我们会在iOS中用Objective-C代码来控制它旋转:转载 2013-10-03 13:41:15 · 1290 阅读 · 1 评论 -
unity基础开发 ----Unity3D 4.0新功能:Mecanim动画系统基础教程
作为Unity4.0的主要更新功能,Mecanim动画被寄予了很多的期望。系统有先进的地方,也有不足的地方。这些我们留到最后再来总结。阿赵粗略的学习了一下,写下以下的教程。这篇教程简单的说明了Mecanim系统的用法和控制方式,里面用到的资源,是从AssetStore里面下载的,如果有兴趣的朋友可以去免费下载。学习目标:我预先准备了几个没有带动画的3d模型,fbx格式,然后一些导出转载 2013-09-05 17:50:16 · 7790 阅读 · 1 评论 -
在项目中使用Unity4新Mecanim动画
Unity4的Mecanim动画很早以前就有体验过,迟迟没有加到项目中有两个原因,今天写这篇博客来记录我在做的过程中遇到的一些问题。1.以前的代码代码量比较多,修改起来动的地方太多了。2.使用Mecanim动画,还得需要美术的动画做配合才行。在3.x中播放动画的时候使用Play()或CrossFade(),直接播放动画 或淡入淡出播放动画。1 animation.Play("n转载 2013-09-05 16:54:27 · 1357 阅读 · 0 评论 -
Unity3D在IOS上的优化小结
最近一段時間一直在做Unity 在IOS設備上的資源優化,結合Unity的官方文檔以及自己遇到的實際問題,我把自己認为一些重要的信息罗列在下面,並盡可能對將其量化,以方便更多需要做優化的朋友。 1、角色每個角色盡量使用一個Skinned Mesh Renderer這是因为當角色僅有一個Skinned Mesh Renderer時,Unity會使用可見性裁剪和包圍體更新的方法來優化角转载 2013-09-05 16:35:26 · 936 阅读 · 0 评论 -
向量几何在游戏编程中的使用
简单的2-D追踪-Twinsen编写-本人水平有限,疏忽错误在所难免,还请各位数学高手、编程高手不吝赐教-我的Email-address: popyy@netease.comAndre Lamothe说:“向量几何是游戏程序员最好的朋友”。一点不假,向量几何在游戏编程中的地位不容忽视,因为在游戏程序员的眼中,显示屏幕就是一个坐标 系,运动物体的轨迹就是物体在这个坐标系曲转载 2013-09-12 16:50:30 · 4640 阅读 · 1 评论 -
利用Unity3d中的自动寻路来为角色设置目的地
不少游戏中,你只需在屏幕上单击一下,角色就可以向那个地方奔跑,然后到达目的地停了下来 ,Dota里面就是这样的 。今天,就让我们来实现这一功能吧。我们这次是借助Unity3d里面的自动寻路组件来实现这一功能,所以对此组件不熟悉的读者我希望您事先看一下这方面的资料,不会花你多长时间的。好了,让我们开始吧! 首先,我们得有一个工作目录,所以我们得新建一个工程,我把它命名为:Tes转载 2013-09-05 15:31:01 · 6311 阅读 · 0 评论 -
Unity3D自带寻路学习笔记
1新建一个Cube 设置大小(10,0.5,10),重命名plane;在plane上新建3个cube改名obstacle;新建一个sphere,和一个cube 分别重命名为player,target。Hierarchy面板如下图所示 2 Window>Navigation打开Naviagtion面板,选中3个obstacle设置如下图: 选中plane设置如下图:转载 2013-09-05 15:26:36 · 3295 阅读 · 0 评论 -
Kinect结合Unity3D引擎开发体感游戏(二)
这篇接着《Kinect结合Unity3D引擎开发体感游戏(一)》,时隔3个月才出这篇,在此期间还有不少机油们,要求出续集,期间在公司那边事情太多,一直帮公司前人做的项目擦屁股,到目前为止,完成了差不多,累啊,相信大家都有体会,做前人留项目,基本上坑爹情况多。费了这么多话,给干货了! 接着上一篇写一个3D人物模型,随着身体指示,产生转身和前进与跑步。 就像我上一篇所说的转载 2013-12-16 14:05:53 · 11058 阅读 · 0 评论 -
Animation State Machine Preview (solo and mute)
Animation State Machine Preview (solo and mute)Solo and Mute functionalityIn complex state machines, it is useful to preview the operation of some parts of the machine separately. For this, you ca转载 2014-03-29 10:54:25 · 1249 阅读 · 0 评论 -
Unity3d教程之导入3dMax模型产生问题的解决办法
Unity3d教程之导入3dMax模型产生问题的解决办法更新时间2013-06-29 来源:本站整理Unity3d 导入3dMax模型会产生的问题,按照官方的说明,将max模型导成fbx档导入untiy似乎也不行?能解决吗?答案当然是肯定的,接下来小编将分享问题的解决办法。pc141-ps教程自学网(www.pc141.com)Unity3d 3.5破解版转载 2015-06-08 22:33:07 · 6555 阅读 · 3 评论 -
Unity3D研究院之脚本批量打包渠道包研究
最近在研究Unity3D脚本批量打包,比如在Android平台下各种不同分辨率和不同内存大小的机器,可能还有不同的渠道包,不同渠道可能用的SDK都不一样,这一切的一切都表明你的代码无法做到自适应的,除非批量打包提供各个平台的预定义标签#define 。Unity默认提供了一些预定义标签如: UNITY_EDITOR : 编辑器模式下。 UNITY_STANDALONE:PC Mac转载 2014-06-16 16:42:19 · 812 阅读 · 0 评论 -
Unity3D:优化、资源、预编译
Unity3D:优化、资源、预编译OnMouse类方法会导致额外监听消耗drawcall profiler使用Profiler.BeginSample额EndSample手工分区域分析代码DeepProfiling更详细,但消耗内存尽量避免使用静态变量,以便不使用时从内存中删除。不要逐帧移动 一个静态碰撞器(有collider却没有rigdidbody)转载 2014-06-16 16:41:37 · 1251 阅读 · 0 评论 -
How to pause the game in Uniy3D
static float timeScale; DescriptionThe scale at which the time is passing. This can be used for slow motion effects.When timeScale is 1.0 the time is passing as fast as realtime.Whenti转载 2014-06-15 17:37:21 · 861 阅读 · 0 评论 -
Building Plugins for iOS
Building Plugins for iOSThis page describes Native Code Plugins for the iOS platform.Building an Application with a Native Plugin for iOSDefine your extern method in the C# file as follows:转载 2014-06-11 21:22:21 · 983 阅读 · 0 评论 -
Low-level Native Plugin Interface
Low-level Native Plugin InterfaceIn addition to the basic script interface, Native Code Plugins in Unity can receive callbacks when certain events happen. This is mostly used to implement low-leve转载 2014-06-11 22:00:12 · 1417 阅读 · 0 评论 -
Plugins (Pro/Mobile-Only Feature)
Plugins (Pro/Mobile-Only Feature)Unity has extensive support for Plugins, which are libraries of native code written in C, C++, Objective-C, etc. Plugins allow your game code (written in Javascript,转载 2014-06-11 21:24:07 · 706 阅读 · 0 评论 -
iOS4 加速度计&陀螺仪(转)
在iOS4之前,加速度计由UIAccelerometer类来负责采集工作,而电子罗盘则由CoreLocation接管。而iPhone4的推出,由于加速度计的升级和陀螺仪的引入,与motion相关的编程成为重头戏,所以,苹果在iOS4中增加一个一个专门负责该方面处理的框架,就是CoreMotion Framework。这个CoreMotion有什么好处呢?简单来说,它不仅仅提供给你获得实时的加速度值转载 2014-06-10 21:54:04 · 3153 阅读 · 1 评论 -
Light Probes (Pro only)
Light Probes (Pro only)Although lightmapping adds greatly to the realism of a scene, it has the disadvantage that non-static objects in the scene are less realistically rendered and can look disconn转载 2014-03-23 15:04:22 · 1455 阅读 · 0 评论 -
GUI Texture
GUI TextureGUI Textures are displayed as flat images in 2D. They are made especially for user interface elements, buttons, or decorations. Their positioning and scaling is performed along the x and转载 2014-03-22 14:01:14 · 1270 阅读 · 0 评论 -
Animation Layers
Animation LayersUnity uses Animation Layers for managing complex state machines for different body parts. An example of this is if you have a lower-body layer for walking-jumping, and an upper-body转载 2014-03-29 11:31:29 · 893 阅读 · 0 评论 -
unity3d 脚本参考-技术文档
unity3d 脚本参考-技术文档 核心提示:一、脚本概览这是一个关于Unity内部脚本如何工作的简单概览。Unity内部的脚本,是通过附加自定义脚本对象到游戏物体组成的。在脚本对象内部不同志的函数被特定的事件调用。最常用的列在下面:Update:这个函数在渲染一帧之前被调用,这里是大部分游戏行为代码被执行的地方,除了物理代码。FixedUpd一、 脚本概览这是一个关转载 2013-09-04 22:30:22 · 9011 阅读 · 1 评论 -
Mesh Collider
Mesh ColliderThe Mesh Collider takes a Mesh Asset and builds its Collider based on that mesh. It is far more accurate for collision detection than using primitives for complicated meshes. Mesh Col转载 2013-09-02 15:15:55 · 1812 阅读 · 0 评论 -
AStarHelper A*算法helper class
Author: Rod GreenContents [hide] 1Description2Usage3AStarHelper class4IPathNode Interface5Usage Example5.1PathNode Class5.2DrawHelper Class5.3PathNodeTester C转载 2013-07-31 15:13:03 · 761 阅读 · 0 评论 -
Unity BasicDataStructures ArrayList Hash
When using JavaScript, the basic data structures do not behave as you expect. There are other data structures you can use, but they have syntactic nuances. You can read theMSDN page about these da转载 2013-07-31 15:09:22 · 750 阅读 · 0 评论 -
Unity Script 单例
Members of both singleton types are accessed the same way:MySingleton.Instance.MySingletonMember;The non-component examplepublic class MySingleton{ private static MySingleton ins转载 2013-07-31 14:56:04 · 1373 阅读 · 0 评论 -
Unity3D 游戏引擎之游戏场景的切换与持久化简单数据的储存
持久化简单的数据储存在Unity3D 中提供了一个简单有效的方法,如果之前的你做过Android的开发你会发现在Unity3D中持久化数据的储存和Android非常的想象。那么下面MOMO 将用一个简单有效的例子向大家介绍Unity3D中持久化数据。首先我们须要熟悉一下Unity3D中的PlayerPrefs这个类。这个类中一共帮助我们封装了9个方法,用来数据的储存与读取。举一个例子转载 2013-07-23 17:39:38 · 1109 阅读 · 0 评论 -
教程 :在unity3d中编写你的第一个着色器
你知道显卡是如何渲染图像的吗? 下面这个示意图展示了其一般的过程: 图形渲染管道--是一个在数据呈现在屏幕上之前对其进行传输的管道。老的电脑使用软件进行渲染。CPU通过以下的渲染管道进行所有的计算: 第一款如此使用的3D加速器被称为固定功能性管线,这种管线是严格固定且连续的。渲染的过程是不可能被中断的:转载 2013-07-30 15:48:41 · 3907 阅读 · 0 评论 -
unity3D入门系列十三,如何制作天空盒(SkyBox)(英文)
unity3D入门系列十三,如何制作天空盒(SkyBox)(英文) A Skybox is a 6-sided cube that is drawn behind all graphics in the game. Here are the steps to create one:Make 6 textures that correspond to each of the 6 si转载 2013-07-20 09:51:39 · 4012 阅读 · 0 评论 -
一篇关于Unity3D优化的文章,翻译脚本优化部分 (2011-11-27 11:26:28)
ScriptingAre you using the right algorithm? Selecting the rightalgorithm for a task yields much better optimization than any othercode tweaking you might do. Note that the best algorithm is notalw转载 2013-07-18 15:04:18 · 640 阅读 · 0 评论 -
MouseLookPlus
Author: peteDescriptionThis is a modified version of the C# MouseLook script in the Standard Assets. It's been converted to Javascript and using Keys to adjust the Look direction has been added. Y转载 2013-07-18 11:20:27 · 652 阅读 · 0 评论 -
unity3d--javascript的枚举类型写法
unity3d--javascript的枚举类型写法哈哈,终于知道unity3d中js的枚举类型怎么写了记录一下enum RotationAxes { MouseXAndY = 0, MouseX = 1, MouseY = 2};var axes: RotationAxes= RotationAxes.MouseXAndY;转载 2013-07-18 11:16:11 · 1305 阅读 · 1 评论 -
OnCollisionEnter OnTriggerEnter OnControllerColliderHit
Rigidbody.OnCollisionEnter一般事用于刚体之间的碰撞,In contrast to OnTriggerEnter, OnCollisionEnter is passed the Collision class and not a Collider.The Collision class contains information about contact point翻译 2013-07-14 10:14:50 · 3225 阅读 · 0 评论 -
FindingClosestObject
Author: Lars-Erik Jakobsson (save)Description This script illustrates how to find the closest transform to another transform. Commonly used to check which object is closest to the player. Should b转载 2013-07-31 15:19:53 · 666 阅读 · 0 评论 -
Unity Script 单例
The following snippet shows how to add a static property called instance that will automatically find an instance of the class in the scene and return it.This is useful for managers and other behavi转载 2013-07-31 14:54:37 · 657 阅读 · 0 评论 -
Using Blender and Rigify
Using Blender and RigifyBlender now comes with a free add-on called Rigify that provides your models with a biped rig that will work with Mecanim. This will prove very useful for new and casual game转载 2013-09-02 14:46:15 · 2166 阅读 · 0 评论