示例#1
0
    public override Node Create(Vector2 pos)
    {
        ShapeNode node = CreateInstance <ShapeNode> ();

        node.rect = new Rect(pos.x, pos.y, 150, 340);
        node.name = "ShapeNode";

        node.CreateOutput("Texture", "TextureParam", NodeSide.Right, 50);

        return(node);
    }