Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development

Maureen O'Neal
Maureen O'Neal
12,930 Points

Trouble with MonoBehaviour Pickups

I'm having a problem, I'm trying to set up the FlyMovement, I worked on the file, wrote the code: [SerializeField] private Transform center; But my Inspector on Unity keeps telling me : FlyMovement Import Settings: to
Open which I do, with the error: no monobehaviour scripts in the file, or their names to not match the file name. What do I do, I've googled it and looked on the unity forum, I imported new files from Treehouse recently, but I can't get it to recognize my file.

Greg Austin
Greg Austin
10,890 Points

having same problem, but with the Cameras In Unity project...there's no auto-complete either for any monobehaviour script when editing scripts. Other projects work fine, tho, and it was working just last night...maybe project corrupted?

1 Answer

Greg Austin
Greg Austin
10,890 Points

Huh...my issue was fixed by simply restarting Unity. Maybe it had something to do with moving the Orbit Camera script (for me) while it was opening?