You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
631 B
23 lines
631 B
using System;
|
|
using TNode.Cache;
|
|
using TNode.Editor.Inspector.InspectorImplementation;
|
|
using Unity.VisualScripting;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace TNode.Editor.Inspector{
|
|
public class InspectorItemFactory{
|
|
|
|
public InspectorItem<T> Create<T>(){
|
|
//Check type of GraphDataType
|
|
var hasSpecificType = NodeEditorExtensions.HasSpecificType<InspectorItem<T>>();
|
|
if (hasSpecificType){
|
|
return NodeEditorExtensions.CreateInstance<InspectorItem<T>>();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|
|
}
|
|
|