Exemplo n.º 1
0
    private static NoiseNodeCanvas PopulateNoiseNodeEditor(Tree tree)
    {
        NoiseNodeCanvas noiseNodeCanvas = (NoiseNodeCanvas)(NodeEditor.curNodeCanvas = CreateInstance());

        noiseNodeCanvas.Populate(tree);
        return(noiseNodeCanvas);
    }
Exemplo n.º 2
0
    public static NoiseNodeCanvas CreateInstance()
    {
        NoiseNodeCanvas noiseNodeCanvas = ScriptableObject.CreateInstance <NoiseNodeCanvas>();

        noiseNodeCanvas.ntf = YamlIO.LoadFile <NoiseTreeFiles>(NoiseTreeFiles.GetPath(), null, null);
        return(noiseNodeCanvas);
    }