GameObjectNode.cs 468 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using GraphProcessor;
  5. using System.Linq;
  6. [System.Serializable, NodeMenuItem("Custom/Game Object")]
  7. public class GameObjectNode : BaseNode, ICreateNodeFrom<GameObject>
  8. {
  9. [Output(name = "Out"), SerializeField]
  10. public GameObject output;
  11. public override string name => "Game Object";
  12. public bool InitializeNodeFromObject(GameObject value)
  13. {
  14. output = value;
  15. return true;
  16. }
  17. }