public void OnWindowDraw() { if (frame.width <= 0 || frame.height <= 0) { return; } H3DGraph.DrawRoundRect(new Rect(0, 0, frame.width, frame.height), radius, borderColor, backgroundColor, radColor); //Rect rect = frame; //if(!clip) { // rect = new Rect(frame.x,frame.y,float.MaxValue,float.MaxValue); //} //GUI.BeginGroup(rect); for (int i = 0; i < subviews.Count; i++) { if (subviews[i].visible) { subviews[i].OnDraw(); } } //GUI.EndGroup(); }
public virtual void OnDestroy() { H3DGraph.ClearCache(); root.OnDestroy(); win = null; }