使用
源码
窗口的源码位于:
Engine\Plugins\Editor\AssetManagerEditor\Source\AssetManagerEditor\Private\ReferenceViewer\SReferenceViewer.cpp
例如对于关卡 Content/Arts/Maps/Login/Login.umap 做引用分析:
会根据路径得到一个 FAssetIdentifier,接着在 SReferenceViewer::SetGraphRootIdentifiers 设到slate窗口类的成员变量 UEdGraph_ReferenceViewer* GraphObj 中的 CurrentGraphRootIdentifiers 里面去:
接着就会在 UEdGraph_ReferenceViewer 进行递归构造引用与被引用节点,通过 AssetRegistry 来获取: