1
This commit is contained in:
34
Assets/Artists/Scripts/Editor/MotionMatchingEditor.cs
Normal file
34
Assets/Artists/Scripts/Editor/MotionMatchingEditor.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit;
|
||||
using BITKit.Animations;
|
||||
using BITKit.GameEditor;
|
||||
using BITKit.UX;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace BITFALL.GameEditor
|
||||
{
|
||||
public class MotionMatchingEditor : ScriptableObjectGroupEditor<ScriptableMotionMatchingObject>
|
||||
{
|
||||
protected override string AssetsPath => "Assets/Artists/Configs/MotionMatching/";
|
||||
|
||||
[MenuItem("Tools/ScriptableObjectEditor/Motion Matching")]
|
||||
public static void Open()
|
||||
{
|
||||
var window = GetWindow<MotionMatchingEditor>();
|
||||
window.titleContent = new GUIContent("Motion Matching Editor");
|
||||
|
||||
window.Show();
|
||||
}
|
||||
protected override void BindItem(VisualElement arg1, int arg2)
|
||||
{
|
||||
var item = List[arg2];
|
||||
var container = new UXContainer(arg1);
|
||||
|
||||
container.contextLabel.text = item.name;
|
||||
//container.icon.style.backgroundImage = item.SquareIcon;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user