/// --- GUI --- void OnGUI() { if (!this.drawsGUI) { // hide all GUI in certain contexts (such as while slideshow is playing, etc.) return; } if (this.highlightedObject != null) { // draw prompt on highlighted object Prompt prompt = this.highlightedObject.GetComponent <Prompt> (); if (prompt != null && prompt.GetPrompt().Trim() != "") { prompt.DrawPrompt(); } else { // draw crosshair when the prompt is left blank this.drawCrosshair(); } // draw potential stub on highlighted annotation object Annotation annotation = this.highlightedObject.GetComponent <Annotation> (); if (annotation != null && this.annotationsEnabled) { annotation.DrawSummary(); } } else { // draw a crosshair when we have no highlighted object this.drawCrosshair(); } // draw toolbar with our set of accessable area annotations this.drawToolbar(this.areaAnnotationsInRange); }