void Awake()
    {
        instance = this;
        child = transform.GetChild(0);
        material = new Material(shader);

        Hide();
    }
    void Awake()
    {
        instance = this;
        child    = transform.GetChild(0);
        material = new Material(shader);

        Hide();
    }
示例#3
0
    public override Node Create(Vector2 pos)
    {
        HeightToNormal node = CreateInstance <HeightToNormal> ();

        node.rect = new Rect(pos.x, pos.y, 250, 340);
        node.name = "HeightToNormal";
        node.CreateInput("Texture", "TextureParam", NodeSide.Left, 50);
        node.CreateOutput("Texture", "TextureParam", NodeSide.Right, 50);

        return(node);
    }