public override void OnInspectorGUI() { foreach (var box in this.boxes) { GUILayout.Label(BoxManagerEditor.Content(box), Util.AlignedLabel(TextAnchor.MiddleLeft)); } Util.Hint(LayerMask.NameToLayer("Box") != -1, "The \"Box\" layer doesn't exist!"); }
private void OnSceneGUI() { if (this.boxes == null) { return; } foreach (var box in this.boxes) { Handles.Label(box.Pos, BoxManagerEditor.Content(box), Util.AlignedLabel(TextAnchor.MiddleCenter)); } }