上一篇写了如何自动切割动画,这一篇写如何自动生成AnimatorController. 之前网上查了很多资料,看的一直很蒙,看不懂是怎么回事的,这里我先给大家明确几个概念: 画的不好,大家将就着看,写这个工具我们会涉及到很多类,类名包含上图哪个关键字,这个东西就跟哪个东西有关 只要大家能明确这些概念,看懂代码就不难了,下面上代码: using UnityEngine; using UnityEditor; using System.IO; using UnityEditor.Animations
using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using UnityEngine; using UnityEditor; /// <summary> /// Unity基础工具功能 /// priority菜单项显示排序 /// </summary> public class TestEditor : MonoBehaviour { [M
Unity制作2D产品的时候,我们在制作动画的时候,要不断的生成Animation,Animator等等资源,如果动画一多的话,就变得麻烦.由于Unity是支持插件开发的,我们可以添加一个Editor,然后把美术的动画图片放在指定的位置. using UnityEngine; using System.Collections; using System.Collections.Generic; using System.IO; using UnityEditor; using UnityEdit
CSS3 2D Transforms Methods translate() rotate() scale() skewX() skewY() matrix() 1> translate() The translate() method moves an element from its current position (according to the parameters given for the X-axis and the Y-axis). 2> rotate() The rota
I got the following errors with Untiy 4.0f7error CS0117: `UnityEditor.EditorUtility' does not contain a definition for `GetMiniThumbnail'error CS0117: `UnityEditor.EditorUtility' does not contain a definition for `ResetGameObjectToPrefabState'error C