Skip to content

New default "Attach Node Script" path causes warning not mentioned in tutorial #9670

Open
@codingthat

Description

@codingthat

Your Godot version: 4.2.2

Issue description:

Tutorial has:

Change the Template field from "Node: Default" to "Object: Empty" to start with a clean file. Leave the other options set to their default values and click the Create button to create the script.

existing screenshot

What actually happens:

Screenshot at 2024-07-29 18-24-06

URL to the documentation page: https://docs.godotengine.org/en/stable/getting_started/step_by_step/scripting_first_script.html#creating-a-new-script

It's not clear why the name defaults to res://Sprite2D.gd but if you change it to sprite_2d to match the tutorial screenshot, the result is pretty close (except the last line, "Template: ...," is now grey instead of green). But the tutorial says, "Leave the other options set to their default values."

So...should the default behaviour of Godot be reverted since it causes a warning, or should the tutorial instructions be updated?

If the latter, maybe the warning could be explained. It's not clear why exactly it's "usually not desired" nor in what case it might actually be desired despite the warning.

Thanks team, you're awesome ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions