1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00
xNode/Scripts/Editor/Resources/ScriptTemplates/xNode_NodeTemplate.cs.txt
Thor Brigsted 9e7e7c4c9b UPGRADE NOTICE: Removed Init. Use OnEnable instead
OnEnable is a built-in event in Unity, and as such you don't need to override anything.
Simply replace 'protected override void Init()' with 'private void OnEnable()'.
You can use any access modifier.
2019-05-07 17:02:25 +02:00

17 lines
357 B
Plaintext

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XNode;
public class #SCRIPTNAME# : Node {
// Use OnEnable for initialization
private void OnEnable() {
#NOTRIM#
}
// Return the correct value of an output port when requested
public override object GetValue(NodePort port) {
return null; // Replace this
}
}