Skip to content

xprees/unity-npc

Repository files navigation

Unity NPC AI Package

NPM Version

This package provides a NPC-AI solution for Unity build on top of the Unity AI - Navmesh package

Features

  • NPC Controller - A base class for controlling NPCs, which can be extended to create custom NPC behaviors.
  • NPC Animation Controller - A base class for controlling NPC animations, which can be extended to create custom NPC animations.
  • Patrolling - Using custom Route and Waypoints to define the path for the NPC to follow and how long to rest on waypoint.
  • State Machine - Using StateMachine to define the behavior of the NPC.

Installation

Add to your Unity project following OpenUPM and xprees-NPM scoped registries. So you can install the package with the all dependencies automatically with Unity Package Manager.

Either do it manually or by using the Unity Package Manager UI. Packages/manifest.json

{
    "scopedRegistries": [
        {
            "name": "OpenUPM",
            "url": "https://package.openupm.com",
            "scopes": [
                "com.cysharp.unitask",
                "com.github.siccity.xnode",
                "com.dbrizov.naughtyattributes"
            ]
        },
        {
            "name": "xprees-NPM",
            "url": "https://registry.npmjs.org",
            "scopes": [
                "cz.xprees"
            ]
        }
    ]
}

Then simply install the package using the Unity Package Manager using the NPM - xprees scope or by the package name cz.xprees.npc.

About

Unity package with scripts and tools for NPCs and controlling their behavior

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages