示例#1
0
        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);
            }
        }
示例#2
0
 public LevelsNode()
 {
     title    = "Levels Node";
     data     = new LevelsData(new Vector2(0, 1), new Vector2(0, 1));
     lastData = data;
 }