Skip to content

Question: Curious why the graphs are not derived from UDataAsset but rather UObject ? #7

Open

Description

@jswigart

Quick question. I'm curious why the graphs are UObject and not UDataAsset derived?

Activity

  1. added a commit that references this issue on May 15, 2021
  2. BirdCatcherGames commented on May 30, 2022

    @BirdCatcherGames

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions