Engine modules: - Audio: remove AudioSource/Listener components (they belong in Components/), add IAudioEffect.h - Components: add AudioSourceComponent.h and AudioListenerComponent.h - Math: remove non-existent OBB.h - Resources: fix DependencyGraph.h -> ResourceDependencyGraph.h - Threading: add TaskSystemConfig.h - RHI: remove incorrect RHIDescriptor.h (already covered by RHIDescriptorPool.h) Backend fixes: - OpenGL: add OpenGLScreenshot.h - D3D12: fix file order (D3D12Enum.h before D3D12Types.h)
26 lines
555 B
Markdown
26 lines
555 B
Markdown
# TextureImportSettings::Clone
|
|
|
|
```cpp
|
|
Core::UniqueRef<ImportSettings> Clone() const override;
|
|
```
|
|
|
|
创建并返回一份当前设置的深拷贝。
|
|
|
|
**返回:** `Core::UniqueRef<ImportSettings>` - 新的 `TextureImportSettings` 克隆
|
|
|
|
**线程安全:** ✅
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
TextureImportSettings settings;
|
|
settings.SetTextureType(TextureType::Texture2D);
|
|
|
|
auto cloned = settings.Clone();
|
|
// cloned 是独立的副本,修改不影响原对象
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [TextureImportSettings 总览](textureimportsettings.md) - 返回类总览
|