# PathVisitor

> Helper visitor to visit a single property using a specified PropertyPath.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule
* **Implements:** [IPropertyBagVisitor](/engine/6000.7/script-reference/unity/properties/ipropertybagvisitor.md), [IPropertyVisitor](/engine/6000.7/script-reference/unity/properties/ipropertyvisitor.md)

```csharp
public abstract class PathVisitor : IPropertyBagVisitor, IPropertyVisitor
```

## Properties

| Property                                                                                       | Description                                                               |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [Path](/engine/6000.7/script-reference/unity/properties/pathvisitor/path.md)                   | The path to visit.                                                        |
| [ReadonlyVisit](/engine/6000.7/script-reference/unity/properties/pathvisitor/readonlyvisit.md) | Returns whether or not the visitor will write back values along the path. |
| [ReturnCode](/engine/6000.7/script-reference/unity/properties/pathvisitor/returncode.md)       | Returns the error code encountered while visiting the provided path.      |

## Methods

| Method                                                                                 | Description                                                                |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [Reset](/engine/6000.7/script-reference/unity/properties/pathvisitor/reset.md)         | Resets the state of the visitor.                                           |
| [VisitPath](/engine/6000.7/script-reference/unity/properties/pathvisitor/visitpath.md) | Method called when the visitor has successfully visited the provided path. |
