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 How to Make a Video Game Pickups Script the Fly Movement

Scripts

My C# scripts that I type out or edit are not rejecting in Unity, so my game features are not being displayed when I press play in the game view. The code im writing is correct its just not being updated in unity and its really hindering my progress please help.

2 Answers

Quinton Gordon
Quinton Gordon
10,985 Points

Hi Tanya,

To start are you verifying that your script changes are being saved in your IDE after you edit them? Also are you making sure to attach your scripts as a component to an object in your project? All scripts have to actually be attached to an object in order to be ran, just having them in the project alone will not suffice. If you can provide any script caps such as your asset folders and your components that might help to further troubleshoot. Also if you want to share your code or your project I would be happy to look over them both and help out!

Hey Quinton

Thank you very much for the help I've managed to get it sorted out and everything is running smoothly again. Hopefully this will be the last time have this problem, thank you once again very much appreciated.