docs: update resources API docs
This commit is contained in:
26
docs/api/resources/textureimportsettings/savetojson.md
Normal file
26
docs/api/resources/textureimportsettings/savetojson.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# TextureImportSettings::SaveToJSON
|
||||
|
||||
```cpp
|
||||
Containers::String SaveToJSON() const override;
|
||||
```
|
||||
|
||||
将当前设置序列化为 JSON 字符串。
|
||||
|
||||
**返回:** `Containers::String` - JSON 格式的设置字符串
|
||||
|
||||
**注意:** 当前为 stub 实现,始终返回空字符串。
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
TextureImportSettings settings;
|
||||
settings.SetSRGB(true);
|
||||
Containers::String json = settings.SaveToJSON();
|
||||
// 当前实现返回空字符串
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [TextureImportSettings 总览](textureimportsettings.md) - 返回类总览
|
||||
Reference in New Issue
Block a user