Build bug, and something's missing

I tried doing a build of the project at the final stage and got errors:

Assets/Code/Control/PatrolPath.cs(29,17): error CS0103: The name ‘Handles’ does not exist in the current context
Error building Player because scripts had compiler errors

The reason for that is that PatrolPath contains the code for OnDrawGizmos() which is an editor-function, so we need to guard it with an #if UNITY_EDITOR/#endif around its definition.


And where’s the dragon shown in the course’s cover image? :wink:

Privacy & Terms