public override void Draw() { base.Draw(); GUILayout.BeginArea(rect); if (texture != null) { GUI.DrawTexture(new Rect(0 + rect.width / 8, 0 + rect.height / 5, rect.width - rect.width / 4, rect.height - rect.height / 4), texture); } GUILayout.EndArea(); if (lastData.inputLevels != data.inputLevels || lastData.outputLevels != data.outputLevels) { lastData = data; Compute(true); } }
public LevelsNode() { title = "Levels Node"; data = new LevelsData(new Vector2(0, 1), new Vector2(0, 1)); lastData = data; }