Exemple #1
0
 public void Init(IAnimatorControllerEditor host)
 {
     this.m_Host = host;
     if (this.m_LayerList == null)
     {
         this.m_LayerList = new ReorderableList((!(this.m_Host.animatorController != null)) ? new UnityEditor.Animations.AnimatorControllerLayer[0] : this.m_Host.animatorController.layers, typeof(UnityEditor.Animations.AnimatorControllerLayer), true, false, false, false);
         this.m_LayerList.onReorderCallback             = new ReorderableList.ReorderCallbackDelegate(this.OnReorderLayer);
         this.m_LayerList.drawElementCallback           = new ReorderableList.ElementCallbackDelegate(this.OnDrawLayer);
         this.m_LayerList.drawElementBackgroundCallback = new ReorderableList.ElementCallbackDelegate(this.OnDrawLayerBackground);
         this.m_LayerList.onMouseUpCallback             = new ReorderableList.SelectCallbackDelegate(this.OnMouseUpLayer);
         this.m_LayerList.onSelectCallback = new ReorderableList.SelectCallbackDelegate(this.OnSelectLayer);
         this.m_LayerList.index            = this.selectedLayerIndex;
         this.m_LayerList.headerHeight     = 0f;
         this.m_LayerList.footerHeight     = 0f;
         this.m_LayerList.elementHeight    = 40f;
     }
 }
 public void Init(IAnimatorControllerEditor host)
 {
     this.m_Host = host;
 }
 public void Init(IAnimatorControllerEditor host)
 {
     this.m_Host = host;
 }