Unity graph tool solution based on different implementation now focused on Unity.Experimental.Graphview
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
767 B

using System;
using UnityEngine;
using UnityEngine.Serialization;
namespace TNode.TNodeCore.Editor.Models{
/// <summary>
/// It's called the graphview - model .not the ViewModel concept in MVVM.
/// Help graph view to persist its own data
/// </summary>
[Serializable]
public class GraphViewModel:EditorModel{
/// <summary>
/// The scaling factor of a graph view.
/// </summary>
public float persistScale = 1f;
/// <summary>
/// The offset of a graph view in the canvas
/// </summary>
public Vector2 persistOffset = Vector2.zero;
/// <summary>
///Is this graph view have a blackboard turn on.
/// </summary>
public bool isBlackboardOn;
}
}