01 2018 档案
摘要:1 1 getnodebyname "circle01" 2 2 for o in objects do 3 if o.name == "circle01" then 4 3 select $Box* – select any objects with the name box at the beg
阅读全文
摘要://--------------------------------------------------------------------------------------------------------------- //!!!使用代码创建animatorcontroller,虽然能创建成功,看起来也没什么问题,可能是使用方式问题 //但...
阅读全文
摘要:#if UNITY_EDITOR using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using UnityEditor; using UnityEngine; public class AnimImport : AssetPostprocessor { ...
阅读全文
摘要:从模型中获得切割好的动画clip,并且对其中设置好的动画事件进行修改方法: 1.动画模型后缀为.FBX.在Unity3d中,能够显示FBX中的动画。要加载模型中的AnimationClip,只要AssetDatabase.LoadAssetsAtPath(fbxPath,typeof(Animati
阅读全文
摘要:static void TestChar0() {//注意字符串中0和\0的区别,如 s1="h0ello", s2 = "h\0ello" //s2中的\0是字符串结尾符,除了C#不把它作为结束符外,其它语言都把它作为结束符,如U3D,LUA,C/C++等 //而s1中的0仅是一个字符0而已,字符0的ASCII值是...
阅读全文
摘要:1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEditor; 4 using UnityEngine; 5 6 public class animImport : AssetPostprocessor 7 { 8 9 //fbx动画导入前的处理,对动画集进行切...
阅读全文
摘要:1. string string类型的变量是一个数组,下列操作合法:strName = $.name -- output: "Shemmy_03" strName[1] --得到字符串strName第一个元素 "S"strName[3] --得到字符串strName第一个元素 "e"strName.
阅读全文