Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.07 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.07 KB

This is an old version, I am in the process of creating an updated one.

Unity3D - AI Patrol With Widget - Unity Version: 2021.3.0f1

Using a custom editor window, one can quickly create paths for NPCs to walk on through a game enviroment in Unity.

Visual path of patrol route made with Unity Widgets

Using Unity's Widgets, you can also visually see the path and node numbers while in the editor.

Visual path of patrol route made with Unity Widgets

These example images have a patrol that has 8 points the traversingObject walks to/around.

The program as well toggles a boolean within the traversingObject's Animator called "shouldMove" to toggle its' walk animation on/off.

If "Should Loop" is toggled off, the traversingOject will walk through the patrol in the opposite direction. If toggled on, the widget will show a new line connecting the ends of the patrol, showing it as a new part of the patrol path.