I realize the name “Experimental” should give it away, but if someone could clarify…
Is it safe to build a node system using the API that resides in UnityEditor.Experimental.Graphview, or will I be building a system that may possibly break in later versions? Last time I lost work on custom utiliy I had built for the ShaderGraph since its API was made private, so I’m voicing a concern before diving into this system. Most of all I’m worried for the removal of the API from the public domain, rather than some things changing here and there.
EDIT: I read here GraphView official support ,
that there’s very little risk of it going private, so all’s good I guess!
If you really want to be sure, you could always copy the implementation from our C# Reference:
1 Like
This is off-topic, but I decided to check out the repo because I was curious how the EdgeControl worked internally, and I noticed that you guys have an unused reference.
Mesh m_Mesh;
is declared, and never set, but it is destroyed in OnLeavePanel().
void OnLeavePanel(DetachFromPanelEvent e)
{
if (m_Mesh != null)
{
UnityEngine.Object.DestroyImmediate(m_Mesh);
m_Mesh = null;
}
}
I was unable to find any other reference to m_Mesh in EdgeControl.cs.
Doesn’t this actually violate the “Reference Only” license, as the code is only meant to be used as a reference, and not to be embedded in our own code? The license even says