Scene Validator

 
 

Scene Validator β€” Unity Editor Tool

I developed a Unity Scene Validator tool that scans scenes for common issues such as missing scripts, empty objects, duplicate names, disabled components, and broken mesh references. The tool provides one-click fixes, bulk operations, filtering, and full Undo support to streamline environment and level design workflows.

πŸ” Features

🧩 Missing Scripts Detection

Identifies all GameObjects containing components that reference missing scripts.
Includes one-click cleanup: Remove Missing Scripts.

πŸ“¦ Empty GameObject Finder

Detects GameObjects with only a Transform and no children β€” typically leftover β€œjunk” from previous editing.

One-click fix: Delete Empty Objects.

♻️ Duplicate Name Detection

Finds multiple GameObjects with the same name under the same parent.
Useful for keeping large hierarchies clean.

One-click fix: Auto-Rename Duplicates (Object, Object_1, Object_2, etc.)

β›” Disabled Component Detection

Detects disabled components that are often unintentional:

  • Renderer disabled

  • Collider disabled

  • Light disabled

One-click fixes: Enable Renderer, Enable Collider, Enable Light

πŸ—Ώ MeshFilter Without MeshRenderer (Broken Mesh Objects)

Identifies GameObjects that contain a MeshFilter but no MeshRenderer, which usually indicates:

  • missing Renderer component

  • broken prefab

  • incomplete mesh reference

  • accidental leftover mesh holder object

One-click fix: Delete Object

🧰 Bulk Fix Tools

Bulk actions apply to all selected issues:

  • Fix Missing Scripts

  • Delete Empty Objects

  • Auto-Rename Duplicates

  • Enable Renderers

  • Enable Colliders

  • Enable Lights

  • Delete Missing MeshRenderer Objects

All operations use Unity’s Undo system (Ctrl + Z).

πŸ–₯️ User Interface

Tools β†’ Scene Validator

The window includes:

  • Filter toggles for each issue category

  • "Rescan Scene" button

  • Scrollable list of all issues

  • Select / Deselect all

  • Per-issue action buttons

  • Bulk action buttons

Each issue shows:

  • GameObject name

  • Type of issue

  • Additional details

  • Select button

  • Fix button

πŸš€ Example Use Cases

  • Cleaning up scenes imported from other projects

  • Preparing levels for final build

  • Detecting broken references and missing components

  • Removing thousands of invisible unused empty objects

  • Ensuring consistent scene structure for a team

  • Validating prefabs before integrating into production scenes

πŸ› οΈ Technical Highlights

  • SerializedObject / SerializedProperty operations (missing script removal)

  • Scene scanning via Transform enumeration

  • Sibling-level duplicate detection logic

  • Component state verification (Renderer, Collider, Light)

  • Object pinging and selection in Hierarchy

  • Custom EditorWindow UI with filters and scroll view

  • Full Undo integration (Undo.RecordObject, Undo.DestroyObjectImmediate)

πŸ“¦ Requirements

  • Unity 2021+

  • Works with URP / HDRP / Built-In Render Pipeline

  • No external dependencies

 

Year: 2025
Company: Private
Role: Technical Artist