godotengine / godotengine/godot-docs

Resources code example has confilcting instructions

Open
#7,719 3 comments 0 reactions 0 assignees View on GitHub
area:manual bug
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:** 4.1.1 stable, 3.5, 3.6

**Issue description:**

Unter "Creating your own Resources", in the first example script, it says without further explanation:

```
# Make sure that every parameter has a default value.
# Otherwise, there will be problems with creating and editing
# your resource via the inspector.
```

But the very same example script does not have any default values. Very confusing. Also "otherwise there will be problems" seems to me like a very imprecise explanation for a documentation document. As a user I would like to make an informed decision, so what problems exactly?

**URL to the documentation page:**
https://docs.godotengine.org/en/stable/tutorials/scripting/resources.html#creating-your-own-resources

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.