文章分类 - Unity3D
摘要:http://blog.csdn.net/aisajiajiao/article/details/19011259上周我发布了Ash,一个Actionscript游戏开发实体系统框架,许多人问我这个问题"什么是实体系统框架?"本文就是我详尽的答案.实体系统逐渐流行起来了,比较著名的有像Unity,不...
阅读全文
摘要:你说unity里有没有?en这里有教程http://www.youtube.com/watch?v=Nc31yvpLlco群共享有FQ软件System.IO.File.AppendAllText(yourPath,System.String.Format("{0}{1}{2}{3}{4}",enemyName,ea1,ea2,enemyDefense,enemyHealth));
阅读全文
摘要:1.通过GameObject的名字寻找 //this method is slow, so avoid using this in the Update/FixedUpdate method public static Object Find (string name, System.Type type) { Object[] objs = Resources.FindObjectsOfTypeAll (type); foreach (Object obj in objs) { if (obj.name == name) { return obj; } } retur...
阅读全文
摘要:在unity3d中用Find可以直接查找组件例子一:该脚本时绑在main Camera上的,"/Scene/player"这是在Hierarchy目录下直接找寻Sceneif (Physics.Raycast (ray.origin, ray.direction, hit,10)) { if(hit.transform.name=="player"){ var player = transform.Find("/Scene/player"); print (player.posit...
阅读全文
摘要:延迟yield写法IEnumerator WaitAndShot(float waitTime){ { yield return new WaitForSeconds(waitTime); } }调用时候 必须用StartCoroutine(WaitAndShot(5.0F));
阅读全文
摘要:译之:http://unity3d.com/support/docum ... ipts_in_Csharp.html Writing Scripts in C# 使用C#写脚本Apart from syntax, there are some differences when writing scripts in C# or Boo. Most notable are:除了语法外,使用C#或Boo会有一些差别,最明显的是:1. Inherit from MonoBehaviour继承之MonoBehaviour类All behaviour scripts must inherit from
阅读全文
摘要:http://blog.csdn.net/setflvet/article/details/8194039There are two scripts required to get Pocket RPG Weapon Trails working.要使武器拖尾运作需要两个脚本。WeaponTrail.csAnimationController.csYou will also need another script that calls AnimationController and WeaponTrails and controls their behavior. In the example
阅读全文
摘要:做动画用序列帧调用文件:void RoleUp() { BroadcastMessage("Move", 2.0); controller.Move(Vector3.up * Time.deltaTime*currentVel); }被调用文件SimpleSprite.cs:using UnityEngine;using System.Collections;public class SimpleSprite : MonoBehaviour{ //Setup Animations public Texture[] animation0; public Texture[] a
阅读全文
摘要:基础介绍:Unity3d的布局•Scene View (场景视图)-用于放置物体•Game View(游戏视图)-表示游戏在运行时的外观•Hierarchy(层次视图)-当前场景中的游戏物体的列表用来放置GameObject.•Project(工程视图)-显示当打开工程所有可用的物体和资源•Instpector(检视视图) -显示当前选中物体的细节和属性基本组成:GameObject,可以携带各种Component(每个GameObject至少带有Transform组件,所有的组件都可以从顶部菜单Component里面找到并添加给游戏对象)。Component组件,附加在GameObject上
阅读全文
摘要:定义 private RaycastHit hitInfo_;private Vector3 currDir_;//上currDir_ = Vector3.up;//下currDir_ = Vector3.up*-1;//左currDir_ = Vector3.right * -1;//右currDir_ = Vector3.right; float scale = 1.0f; if (currDir_ == Vector3.up || currDir_ == Vector3.up * -1) { //scale = Utility.GetWorldScale(transform_).y; s
阅读全文
摘要:转自http://hi.baidu.com/gameip/blog/item/6c4cc00b0fdc6a990b7b825c.html脚本方面 ,官方脚本分:Runtime Classes : 游戏中使用的脚本,可以操作游戏中所有的GameObject,Components,Attributes:脚本里的用的, 在js代码中以@开头...可以操作脚本中的变量,脚本执行时机,Enumerations: 脚本中枚举参数的定义.Editor classes : Unity工具修改的脚本.可以给Editor开发插件.也可以修改Unity里的各个视图显示的信息.Enumerations : Edit.
阅读全文
摘要:http://flash.52pk.com/yizhi/5407145_flash.shtml#cc
阅读全文
摘要:iTween是一个动画库,作者创建它的目的就是最小的投入实现最大的产出.让你做开发更轻松,用它可以轻松实现各种动画,晃动,旋转,移动,褪色,上色,控制音频等等 到官网看看http://itween.pixelplacement.com主要文件有iTween.cs http://code.google.com/p/itween/downloads/list和 iTweenPath.unitypackage(编辑路径才需要这个包)文档地址 http://itween.pixelplacement.com/documentation.php希望我们能一起学习,一起进步哈,我的QQ:397319689
阅读全文
摘要:1.动画倒放 animation.speed *= -1.0;2.寻找场景中物体var door = GameObject.Find("door").transform;3.全局变量用法,A.js 里的 static var AAA 到 B.js 里调用方式为 A.AAA4.function Awake() 创建一个物体时自动运行的程序5.js 中可以使用 "" + 0 将数字转换为字符串6.3d字体较为模糊是因为使用了anti-aliasing,可以创建大的字体物体,将字体属性中的 size 设为小一些来解决7.InvokeRepeating(函数名,
阅读全文
摘要:设置gameobject的tag值 这里设为Bullet.在Script1.cs里有两个方法是 public void setBulletcnt(int iCnt) { iCurrentBulletCnt = iCnt; } public void jump() { Debug.Log("**************************************************************************************************"); }在Script2.cs里调用方法一:GameObject.FindWithTag(&
阅读全文
摘要:Unity圣典http://game.ceeger.com/Unity3D联盟∷Unity3D游戏引擎开发中国社区http://www.u3dchina.com/forum.php?fromuid=1531unity3d中文学习社区http://www.unity3d8.com/9RIA论坛>论坛>RIA新技术区>Unity3Dhttp://bbs.9ria.com/forum-73-1.htmlUnity3D教程http://unity3d.9ria.com/?cat=1浙商互联http://www.zheshang8.com/bbs/thread-2463-1-1.htm
阅读全文

浙公网安备 33010602011771号