mirror of
https://github.com/galacean/engine.git
synced 2026-06-09 17:23:29 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user