Skip to content

Create custom NPC patrol paths in Unity using a custom editor and Unity's Widgets.

Notifications You must be signed in to change notification settings

Dead245/Unity3D-AiPatrolWithWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Create custom NPC patrol paths in Unity using a custom editor and Unity's Widgets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages