Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to create a GameResource that makes use of the NodeGraph api in the game project #7287

Open
QuackCola opened this issue Dec 31, 2024 · 2 comments

Comments

@QuackCola
Copy link

QuackCola commented Dec 31, 2024

What can't you do?

Currently as of now if you want to make a Game Resource that's nodegraph based you need to put said resource in the editor project in order to make use of the IGraph interface. Which makes it editor only.

ActionGraph does provide an example todo such thing but it would be nice if there was a better and more generic way.

How would you like it to work?

Ability to create a GameResource that makes use of the NodeGraph API which when setup on the game project side can the editor side interact with the resource.

What have you tried?

Nothing as I haven't been able get myself around how ActionGraph does it.

Additional context

No response

@Metapyziks
Copy link

ActionGraph works like this:

  • ActionGraph describes a graph at runtime
  • EditorActionGraph implements IGraph in editor code, describes how to edit a wrapped ActionGraph

I think you'll want to do the same thing:

  • MyCustomGraphResource extends GameResource, in game code
  • EditorMyCustomGraphResource implements IGraph in editor code, describes how to edit a MyCustomGraphResource

@Metapyziks Metapyziks moved this from To triage to Proposition in s&box tracker Dec 31, 2024
@QuackCola
Copy link
Author

had a look about getting it setup partly but some of it is a bit confusing. Maybe if there was a clear example perhaps somewhere? that would be handy to get up and running with something basic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Proposition
Development

No branches or pull requests

2 participants