02 2013 档案

摘要:characterCustomezition的资源打包代码分析using System.Collections.Generic;using System.IO;using UnityEditor;using UnityEngine;class CreateAssetbundles{ // This method creates an assetbundle of each SkinnedMeshRenderer // found in any selected character fbx, and adds any materials that // are intended... 阅读全文
posted @ 2013-02-18 00:58 星尘 阅读(8808) 评论(0) 推荐(0) 编辑
摘要:Vector3.Lerp 插值static functionLerp(from:Vector3,to:Vector3,t: float) :Vector3Description描述Linearly interpolates between two vectors.两个向量之间的线性插值。Interpolates from towards to by amount t.按照数字t在from到to之间插值。t is clamped between [0...1]. When t = 0 returns from. When t = 1 returns to. When t = 0.5 return 阅读全文
posted @ 2013-02-05 16:06 星尘 阅读(5174) 评论(0) 推荐(1) 编辑
摘要:判断物体是否在任何一个摄像机中void OnBecameInvisible (){ isRendering = false; } void OnBecameVisible(){ isRendering = true; }note:Scene窗口也被Unity3d算作一个camera。 阅读全文
posted @ 2013-02-01 11:22 星尘 阅读(402) 评论(0) 推荐(0) 编辑