Gizmos are visual aids that are provided to game designers in the scene panel. In this recipe, we'll highlight the GameObject that is currently selected in the Hierarchy in the Scene panel:
![](https://static.packt-cdn.com/products/9781788471909/graphics/assets/c7f152c1-9628-4647-9481-676bbfc23ce3.png)
Gizmos are visual aids that are provided to game designers in the scene panel. In this recipe, we'll highlight the GameObject that is currently selected in the Hierarchy in the Scene panel:
To create a Gizmo to show the selected object in the Scene panel, follow these steps:
using UnityEngine;
public class GizmoHighlightSelected : MonoBehaviour {
public float radius = 5.0f;
void OnDrawGizmosSelected() {
...