Limitations

Unity Version

This package was made with Unity 2021.3.6f1 and is therefore compatible with all following versions of Unity.

I strongly think that it is compatible with a lot of older versions as well as it is quite independent. But I can't guarantee it.

Render Pipeline

The core of this package is independent of the render pipeline and is therefore compatible with all of them.

Gizmos

The Gizmos are showing you the paths that are created. They can quickly kill your performance in game as it is drawing one line for every single segment of each path. If you want to disable them, you can comment the following lines in the ObjectSpawner.cs class:

        private void OnDrawGizmos()
        {
            if (_objectPaths == null) return;
            for (int i = 0; i < _objectPaths.Count; i++)
            {
                ObjectPath path = _objectPaths[i];
                for (int j = 0; j < path.AnchorPoints.Count - 1; j++)
                {
                    Debug.DrawLine(path.AnchorPoints[j].GetPosition(), path.AnchorPoints[j + 1].GetPosition(), _colors[i]);
                }
            }
        }

If you develop on top of that class though, they can be very useful to understand what is going on when testing.

Colliders

That is definitely the biggest drawback of this package, the paths are using the physics colliders and not the meshes themselves. It is something I was aware from the beginning of the project but decided to go with anyways.

Although it is in itself a limitation, it brings the possibility to use the build in Physics Layers system of Unity. This way you can decide that the paths are created only on certain types of objects of your scene.

Also the path making works on all type of 3D colliders : Box, Sphere, Capsule, Mesh, Terrain ...

Last updated