Layer enum not being discovered by CamerRaycaster

I experienced an odd bug where I imported the CamerRaycaster script and then created out Layer enum. The raycaster script could not find my enum until I deleted the CameraRaycaster script and reimported it. Spent 20 minutes trying to find a typo or a mistake but appears to just be a weird little glitch.

Unity version 5.5.2

1 Like

Probably couldn’t build the first script because it was referencing the other, which, hadn’t been created… or rather, it had, but hadn’t been compiled because of the error in the first… :slight_smile:

2 Likes

Thank you! This was turning me into a crazy(ier) person!!

1 Like

hehe, you’re welcome :slight_smile:

Thank you sir, that seemingly is a Unity glitch.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms