void Awake() { instance = this; child = transform.GetChild(0); material = new Material(shader); Hide(); }
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); }