godotengine / godotengine/godot-docs

Mention about extending inner-classes

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

Description

**Your Godot version:**
Godot v3.2

**Issue description:**
It hasn't been mentioned in the GDScript Basics page that you could extend inner-classes.
for example:
```gdscript
class RandomNumberLabel extends Label:
func _init() -> void:
text = str(randi() % 100)
```

**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/latest/getting_started/scripting/gdscript/gdscript_basics.html

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.