You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: Curious why the graphs are not derived from UDataAsset but rather UObject ? #7
This would be pretty helpful. A backwards compatible approach I've found is to create a UPrimaryDataAsset which references the UObject derived UGenericGraph as a TSoftObjectPtr, and override PostEditChangeProperty in UPrimaryDataAssets to traverse the graph and read values (or rarely, make writes to the graph but this brittle). This approach allows for integration with AssetRegistrySearchable UPROPERTYs and loading the graphs on-demand instead of needing the hard link and always keeping them in memory.
If there's any appetite for it, I can make a pr with a UGenericGraphPrimaryDataAsset
Activity
Merge pull request #7 from jinyuliao/master
BirdCatcherGames commentedon May 30, 2022
This would be pretty helpful. A backwards compatible approach I've found is to create a UPrimaryDataAsset which references the UObject derived UGenericGraph as a TSoftObjectPtr, and override PostEditChangeProperty in UPrimaryDataAssets to traverse the graph and read values (or rarely, make writes to the graph but this brittle). This approach allows for integration with AssetRegistrySearchable UPROPERTYs and loading the graphs on-demand instead of needing the hard link and always keeping them in memory.
If there's any appetite for it, I can make a pr with a UGenericGraphPrimaryDataAsset