godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.94k stars 3.22k forks source link

the first 2d game main game sense issue #9360

Closed lemchen closed 6 months ago

lemchen commented 6 months ago

Your Godot version: 4.2.2 Issue description: In the first 2d game build main game sense chapter, by following the step, 屏幕截图 2024-05-11 174304 but there's no Mob Scene property in the Inspector under "Script Variables" 屏幕截图 2024-05-11 174435

URL to the documentation page: https://docs.godotengine.org/en/stable/getting_started/first_2d_game/05.the_main_game_scene.html#main-script

AThousandShips commented 6 months ago

Just to make sure, you rebuilt the project?

lemchen commented 6 months ago

Just to make sure, you rebuilt the project?

yes, i do rebuilt the project

AThousandShips commented 6 months ago

Please upload your project to help checking the code is correct

skyace65 commented 6 months ago

I just tested the code in 4.2.2 and it's correct, building the project adds the "mob scene" as an option in the inspector. lemchen please double check your code. If you're using the code copy and pasted from the docs like I did and the option still doesn't show when you build a project, please open an issue in the engine repository here, as this would be an engine bug. In addition, if you do open an engine bug please provide a zip file of your project for contributors to check.