Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| godot:gdscript [2025/10/15 07:08] – silversurfer | godot:gdscript [2025/10/20 21:59] (aktuell) – [Links] 185.38.49.0 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== GDScript ====== | ====== GDScript ====== | ||
| ===== Links ===== | ===== Links ===== | ||
| + | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| - | ===== Programmier-Grundlagen ===== | + | * [[https://kidscancode.org/ |
| - | {{youtube> | + | |
| - | [[https://www.youtube.com/playlist? | + | |
| ===== GDScript Grundlagen ===== | ===== GDScript Grundlagen ===== | ||
| {{youtube> | {{youtube> | ||
| + | |||
| + | ===== Programmier-Grundlagen ===== | ||
| + | {{youtube> | ||
| + | [[https:// | ||
| + | |||
| + | ---- | ||
| + | |||
| ===== Cheat Sheet ===== | ===== Cheat Sheet ===== | ||
| * [[gdscript: | * [[gdscript: | ||
| + | |||
| ===== EditorScripts ===== | ===== EditorScripts ===== | ||
| {{youtube> | {{youtube> | ||
| [[https:// | [[https:// | ||
| + | |||
| ===== Script Templates ===== | ===== Script Templates ===== | ||
| ==== 🛠️ Zwei Arten von Script-Templates ==== | ==== 🛠️ Zwei Arten von Script-Templates ==== | ||
| - | + | - Editor-definierte Templates (global für alle Projekte) | |
| - | + | | |
| - | Editor-definierte Templates (global für alle Projekte) | + | |
| - | Projekt-definierte Templates (nur für ein bestimmtes Projekt) | + | |
| ==== 📁 Speicherorte ==== | ==== 📁 Speicherorte ==== | ||
| === 1. Editor-definierte Templates === | === 1. Editor-definierte Templates === | ||
| - | Windows: %APPDATA%\Godot\script_templates\ | + | * Windows: %APPDATA%\Godot\script_templates\ |
| - | Linux: $HOME/ | + | |
| - | macOS: $HOME/ | + | |
| - | Du kannst den Pfad auch über Editor > Open Editor Data/ | + | <WRAP info>Du kannst den Pfad auch über Editor > Open Editor Data/ |
| === 2. Projekt-definierte Templates === | === 2. Projekt-definierte Templates === | ||
| - | Standardpfad: | + | * Standardpfad: |
| - | Alternativ über die Projekteinstellung: | + | |
| - | Editor > Script > Templates Search Path | + | |
| + | === 📂 Struktur der Templates === | ||
| + | < | ||
| + | **template_path/ | ||
| + | |||
| + | |||
| + | * template_path: | ||
| + | * node_type: Der Node-Typ, für den das Template gelten soll (z. B. Node, CharacterBody3D) | ||
| + | * template_name: | ||
| + | * extension: gd für GDScript, cs für C# | ||
| + | {{: | ||
| + | <WRAP important> | ||
| + | |||
| + | ===== StyleGuide ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| - | === 📂 Struktur der Templates === | ||
| - | Die Templates müssen nach folgendem Schema organisiert sein: | ||
| - | template_path/ | ||
| - | template_path: | ||
| - | node_type: Der Node-Typ, für den das Template gelten soll (z. B. Node, CharacterBody3D) | ||
| - | template_name: | ||
| - | extension: gd für GDScript, cs für C# | ||
| - | ⚠️ Wichtig: Der Ordnername für den Node-Typ ist case-sensitive! | ||
| - | {{: | ||
| - | * erstelle einen Ordner //" | ||
| - | * darin speicherst du dein Script Tamplate | ||