docs: update resources API docs
This commit is contained in:
28
docs/api/resources/textureimportsettings/loadfromjson.md
Normal file
28
docs/api/resources/textureimportsettings/loadfromjson.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# TextureImportSettings::LoadFromJSON
|
||||
|
||||
```cpp
|
||||
bool LoadFromJSON(const Containers::String& json) override;
|
||||
```
|
||||
|
||||
从 JSON 字符串加载导入设置。
|
||||
|
||||
**参数:**
|
||||
- `json` - JSON 格式的设置字符串
|
||||
|
||||
**返回:** `bool` - 加载是否成功
|
||||
|
||||
**注意:** 当前为 stub 实现,始终返回 `false`。
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
TextureImportSettings settings;
|
||||
bool success = settings.LoadFromJSON(R"({"textureType":1,"sRGB":true})");
|
||||
// 当前实现返回 false
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [TextureImportSettings 总览](textureimportsettings.md) - 返回类总览
|
||||
Reference in New Issue
Block a user