refactor: unify shader file extension from .gs/.gsl to .shader (#2951)

refactor: Align with Unity convention by using .shader as the standard extension
for Galacean shader files instead of .gs/.gsl.
This commit is contained in:
ChenMo
2026-04-01 23:19:50 +08:00
committed by GitHub
parent b5614679ec
commit e9bea5b32a
11 changed files with 14 additions and 14 deletions

View File

@@ -24,14 +24,14 @@ For more information about the code editor, please check [Code Editor](/en/docs/
After creating a script asset in the scene editor, double-click the script to open the code editor. Scripts in Galacean need to be written in [Typescript](https://www.typescriptlang.org/), and new scripts are created based on built-in templates by default. Additionally, the Galacean code editor is based on Monaco, with shortcuts similar to VSCode. After modifying the script, press `Ctrl/⌘ + S` to save, and the real-time preview area on the right will show the latest scene effects.
> Tip: The Galacean code editor currently supports `.ts`, `.gs`, and `.glsl` file editing.
> Tip: The Galacean code editor currently supports `.ts`, `.shader`, and `.glsl` file editing.
## File Preview
<Image src="https://mdn.alipayobjects.com/huamei_fvsq9p/afts/img/A*o51FQa9Uh0MAAAAAAAAAAAAADqiTAQ/original" />
1. **File Search** Quickly search for files in the project
2. **Code Filter** Whether to display only code files ( `.ts`, `.gs`, `.glsl` ) in the file tree
2. **Code Filter** Whether to display only code files ( `.ts`, `.shader`, `.glsl` ) in the file tree
3. **Built-in Files** Used to display which files are non-editable internal files
4. **Expand/Hide** Toggle the expansion or hiding of folders
5. **Code Files** Editable code files will display corresponding file type thumbnails