mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
14 lines
537 B
C#
14 lines
537 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using System;
|
|
|
|
[CreateAssetMenu(fileName = "NewNodeGraph", menuName = "Node Graph")]
|
|
public class NodeGraphAsset : ScriptableObject {
|
|
public string json { get { return _json; } set { _json = value; _nodeGraph = null; } }
|
|
[SerializeField] private string _json;
|
|
|
|
public NodeGraph nodeGraph { get { return _nodeGraph != null ? _nodeGraph : _nodeGraph = NodeGraph.Deserialize(json); } }
|
|
[NonSerialized] private NodeGraph _nodeGraph = null;
|
|
}
|