31 lines
706 B
Markdown
31 lines
706 B
Markdown
# AudioSourceComponent::GetTime
|
|
|
|
获取相关状态或对象。
|
|
|
|
```cpp
|
|
float GetTime() const;
|
|
```
|
|
|
|
该方法声明于 `XCEngine/Components/AudioSourceComponent.h`,当前页面用于固定 `AudioSourceComponent` 类目录下的方法级 canonical 路径。
|
|
|
|
**参数:** 无。
|
|
|
|
**返回:** `float` - 返回值语义详见头文件声明。
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
#include <XCEngine/Components/AudioSourceComponent.h>
|
|
|
|
void Example() {
|
|
XCEngine::Components::AudioSourceComponent object;
|
|
// 根据上下文补齐参数后调用 AudioSourceComponent::GetTime(...)。
|
|
(void)object;
|
|
}
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [返回类总览](AudioSourceComponent.md)
|
|
- [返回模块目录](../Components.md)
|