Skip to content

Commit a18bfd0

Browse files
authored
Merge pull request #2583 from feyabibi/feat/audio
feat: add audio documentation for assets, components, and overview in…
2 parents d3aa168 + 44fa4b1 commit a18bfd0

File tree

6 files changed

+14
-21
lines changed

6 files changed

+14
-21
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ Galacean Engine supports a variety of commonly used audio formats, including but
1919

2020
Developers can easily upload audio files using the asset selector. Uploaded audio files are automatically stored in the asset library for subsequent use.
2121

22-
**Video Demonstration:**
23-
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/dXVsQboyhYwAAAAAAAAAAAAADoY9AQFr" autoplay loop muted />
22+
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/dXVsQboyhYwAAAAAAAAAAAAADoY9AQFr" autoPlay loop muted />
2423

2524
## Audio Preview
2625

2726
In the asset library, developers can preview audio files to ensure they meet the game's requirements.
28-
29-
**Video Demonstration:**
30-
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/sZwaQr6CuAMAAAAAAAAAAAAADoY9AQFr" autoplay loop muted />
27+
28+
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/sZwaQr6CuAMAAAAAAAAAAAAADoY9AQFr" autoPlay loop muted />
3129

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ The Audio Component is a core component in Galacean used to add audio playback f
1111

1212
Developers can follow these steps to add the audio component to an entity:
1313

14-
1. **Select the Target Entity**: Choose the [Entity](/docs/core/entity) where you want to add the audio component.
14+
1. **Select the Target Entity**: Choose the [Entity](/en/docs/core/entity) where you want to add the audio component.
1515
2. **Access the Inspector Panel**: Navigate to the Inspector panel for the selected entity.
1616
3. **Add the Component**: At the bottom of the Inspector panel, click on "Add Component" and select "AudioSource".
1717

18-
**Video Demonstration:**
19-
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/JJ5QSKZKhzgAAAAAAAAAAAAADoY9AQFr" autoplay loop muted />
18+
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/JJ5QSKZKhzgAAAAAAAAAAAAADoY9AQFr" autoPlay loop muted />
2019

2120
## Adjusting Volume and Mute
2221

2322
The audio component provides features to adjust the volume and mute the audio. Developers can control these properties either through scripts or directly in the Inspector panel.
2423

25-
**Video Demonstration:**
26-
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/lDyIRbwv5nAAAAAAAAAAAAAADoY9AQFr" autoplay loop muted />
24+
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/lDyIRbwv5nAAAAAAAAAAAAAADoY9AQFr" autoPlay loop muted />
2725

2826
## Controlling Playback Timing
2927

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: Audio
55
label: Audio
66
---
77

8-
Galacean Engine provides comprehensive audio functionality, which is an essential part of creating an immersive gaming experience. The audio system in Galacean supports the import of various standard audio formats, allowing developers to add audio components to [Entities](/docs/core/entity) and precisely play sounds in 3D space, including background music and sound effects, thereby providing a more complete and realistic experience for the game.
8+
Galacean Engine provides comprehensive audio functionality, which is an essential part of creating an immersive gaming experience. The audio system in Galacean supports the import of various standard audio formats, allowing developers to add audio components to [Entities](/en/docs/core/entity) and precisely play sounds in 3D space, including background music and sound effects, thereby providing a more complete and realistic experience for the game.
99

1010
## Audio Assets
1111

@@ -17,5 +17,5 @@ The audio component is the core component in Galacean used to add audio playback
1717

1818
In this section, you can learn about:
1919

20-
- [Audio Assets](/docs/audio/assets/): Information about audio files and their supported formats
21-
- [Audio Component](/docs/audio/component/): Details about the audio component and its properties
20+
- [Audio Assets](/en/docs/audio/assets/): Information about audio files and their supported formats
21+
- [Audio Component](/en/docs/audio/component/): Details about the audio component and its properties
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ Galacean引擎支持多种常见的音频格式,包括但不限于:
1818

1919
开发者可以通过资产选择器轻松上传音频文件,上传的音频文件会自动存储在资产库中,方便后续使用。
2020

21-
**视频演示**
2221
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/dXVsQboyhYwAAAAAAAAAAAAADoY9AQFr" autoPlay loop muted />
2322

2423

2524
## 音频预览
2625

2726
在资产库中,开发者可以预览播放音频文件,确保音频文件符合游戏需求。
28-
29-
**视频演示**
27+
3028
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/sZwaQr6CuAMAAAAAAAAAAAAADoY9AQFr" autoPlay loop muted />
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ label: Audio
1616
2. **打开Inspector面板**:选中目标实体后,Inspector面板将显示该实体的所有组件。
1717
3. **添加组件**:在Inspector面板的底部,点击“添加组件”按钮,并从列表中选择“音频”。
1818

19-
**视频演示**
20-
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/JJ5QSKZKhzgAAAAAAAAAAAAADoY9AQFr" autoplay loop muted />
19+
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/JJ5QSKZKhzgAAAAAAAAAAAAADoY9AQFr" autoPlay loop muted />
2120

2221
## 调节音量和静音
2322

2423
音频组件提供了调节音量和静音的功能。开发者可以通过脚本或 Inspector 面板来控制这些属性。
25-
26-
**视频演示**
27-
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/lDyIRbwv5nAAAAAAAAAAAAAADoY9AQFr" autoplay loop muted />
24+
25+
<video src="https://gw.alipayobjects.com/v/huamei_edbbqz/afts/video/lDyIRbwv5nAAAAAAAAAAAAAADoY9AQFr" autoPlay loop muted />
2826

2927
## 控制播放时机
3028

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Galacean引擎提供了音频功能,音频是构建沉浸式体验的重要组
1616

1717
音频组件是 Galacean 中用于在实体中添加音频播放功能的核心组件。通过音频组件,开发者可以控制音频的播放、暂停、停止以及音量调节等功能。
1818

19+
1920
在本章节,您可以了解到:
2021

2122
- [音频资产](/docs/audio/assets/):有关于音频文件及其支持的格式等参考信息

0 commit comments

Comments
 (0)