载入中...
搜索中...
未找到
SceneDiffEntry / SceneDiff 更多...
#include <SceneLoader.h>
Public 类型 | |
| enum class | Action { Add , Remove , Modify , Move } |
Public 属性 | |
| Action | action = Action::Add |
| std::string | id |
| std::string | parent |
详细描述
The result of diffing a freshly decoded 3D scene against the scene tree that is currently mounted (the "old" SceneHost). This is what makes hot-reload a fast diff: instead of reloading and rebuilding every GameObject, the loader reports exactly which GameObjects need to change so only the corresponding objects are updated.
- Add: object exists in the new scene but not in the mounted tree.
- Remove: object exists in the mounted tree but not in the new scene.
- Modify: object exists in both, identity preserved; only props changed.
- Move: object exists in both but was re-parented.
在文件 SceneLoader.h 第 57 行定义.
成员枚举类型说明
◆ Action
|
strong |
| 枚举值 | |
|---|---|
| Add | |
| Remove | |
| Modify | |
| Move | |
在文件 SceneLoader.h 第 58 行定义.
类成员变量说明
◆ action
| Action eve::sceneloader::SceneDiffEntry::action = Action::Add |
在文件 SceneLoader.h 第 60 行定义.
◆ id
| std::string eve::sceneloader::SceneDiffEntry::id |
在文件 SceneLoader.h 第 61 行定义.
◆ parent
| std::string eve::sceneloader::SceneDiffEntry::parent |
在文件 SceneLoader.h 第 62 行定义.
该结构体的文档由以下文件生成:
- src/modules/sceneloader/SceneLoader.h