载入中...
搜索中...
未找到
eve::sceneloader::SceneDiffEntry结构体 参考

SceneDiffEntry / SceneDiff 更多...

#include <SceneLoader.h>

Public 类型

enum class  Action { Add , Remove , Modify , Move }
 

Public 属性

Action action = Action::Add
 
std::string id
 
std::string parent
 

详细描述

SceneDiffEntry / SceneDiff

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.h57 行定义.

成员枚举类型说明

◆ Action

枚举值
Add 
Remove 
Modify 
Move 

在文件 SceneLoader.h58 行定义.

类成员变量说明

◆ action

Action eve::sceneloader::SceneDiffEntry::action = Action::Add

在文件 SceneLoader.h60 行定义.

◆ id

std::string eve::sceneloader::SceneDiffEntry::id

在文件 SceneLoader.h61 行定义.

◆ parent

std::string eve::sceneloader::SceneDiffEntry::parent

在文件 SceneLoader.h62 行定义.


该结构体的文档由以下文件生成: