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

        Hide();
    }
예제 #2
0
    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);
    }