using UnityEngine; using System; using Object = UnityEngine.Object; namespace GraphProcessor { /// /// Implement this interface on a BaseNode, it allows you to automatically spawn a node if an asset of type T is dropped in the graphview area /// /// The type object your node will be created from, it must be a subclass of UnityEngine.Object public interface ICreateNodeFrom where T : Object { /// /// This function is called just after creating the node from an object and allows you to initialize the node with the object data. /// /// Object value /// True if the initialization happened correctly. False otherwise, returning false will discard your node. bool InitializeNodeFromObject(T value); } }