Similar Posts

Subscribe
Notify of
4 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Knomle
1 year ago

Scripts or your source code is always assigned to a GameObject. So you can’t just place a script in the world like that. Accordingly, you set new C# scripts in your assets (below) as a resource for your project and then you assign them to a GameObject.

This has the simple reason of object orientation in the environment of your game.
You’d better watch tutorials to get into the Unity Engine. There are countless on YouTube.

LG Knom

SmartSnake66
7 months ago

You can’t just place a script in the scene, instead you go to the project-tab, probably downstairs and right-click the asset folder, go to “Create” – “C# Script”

I hope that could help you!

Sören Stabenow
1 year ago

You’ll start a script in the assets, not in the hierarchy.