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...
阅读全文
摘要: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
阅读全文
摘要:判断物体是否在任何一个摄像机中void OnBecameInvisible (){ isRendering = false; } void OnBecameVisible(){ isRendering = true; }note:Scene窗口也被Unity3d算作一个camera。
阅读全文