EditorAttributes.cs 335 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEditor;
  5. using System;
  6. namespace GraphProcessor
  7. {
  8. [AttributeUsage(AttributeTargets.Class)]
  9. public class NodeCustomEditor : Attribute
  10. {
  11. public Type nodeType;
  12. public NodeCustomEditor(Type nodeType)
  13. {
  14. this.nodeType = nodeType;
  15. }
  16. }
  17. }