• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Introduction
  • Basic Usage
  • Built-in Graph Types
  • Finders
  • Structure
  • Performance/Heuristics
  • Customization
  • Low Level (Jobs and ECS)
  • Code Generation
  • Examples
  • Caveats and Known Issues

Code Generation

AnyPath comes with a tool to quickly generate readable finder definitions. To use it, go to Unity -> Window -> AnyPath Code Generator.

Clicking on the Scan Graph Definitions button will scan your project for graph types. Selecting a graph type will generate the code for all of the finder definitions, saving you the hassle of filling in all the type parameters by yourself.

Code Generator

Graph

Select the graph type for which you want to generate finder class definitions for.

Heuristic

Select a heuristic provider.

Path Processor

Select a path processor to determine the output of a pathfinding query.

Edge Modifier

Select an edge modifier. Use NoEdgeMod for no modifier (default).

Name Prefix

Optionally provide a custom name prefix for the generated declarations.

Option Type

If you want to use any of the option finders, provide the type name of the object you're targeting. When filled in, additional option finder definitions will be generated.

Interfaces

Check to generate an interface which can provide interoperability between different finder types in your code.

In This Article
Back to top Generated by DocFX