Skip to content

The "BoxColliderGizmo" script visualizes box colliders by drawing gizmos around them in the Unity Editor. It automatically collects all child colliders and updates them when changes occur. Useful for visually inspecting and adjusting colliders during development.

License

Notifications You must be signed in to change notification settings

adamdived/BoxColliderGizmo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

BoxColliderGizmo

The "BoxColliderGizmo" script allows you to visualize box colliders in the Unity Editor by drawing gizmos around them. It collects all the box colliders in the children of the script's parent object and automatically updates the collection whenever a child collider is added or removed. The gizmos will be visible even when the parent object is not selected in the Unity Editor. The gizmos are drawn using the OnDrawGizmosSelected() and OnDrawGizmos() methods, giving you a visual representation of the collider's position and size. This script can be useful during development to visually inspect and adjust box colliders without the need to enter play mode.

Usage

To use this script, attach it to a GameObject in Unity that contains child objects with box colliders. You can customize the color and transparency of the gizmos to suit your needs.

About

The "BoxColliderGizmo" script visualizes box colliders by drawing gizmos around them in the Unity Editor. It automatically collects all child colliders and updates them when changes occur. Useful for visually inspecting and adjusting colliders during development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages