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

[SG2] Asset structure refactor #7745

Open
wants to merge 8 commits into
base: sg2/main
Choose a base branch
from

Conversation

Nightmask3
Copy link
Contributor

@Nightmask3 Nightmask3 commented Nov 30, 2022


Purpose of this PR

This PR implements work described here: https://jira.unity3d.com/browse/GSG-1474

Miro board with notes of ongoing work: https://miro.com/app/board/uXjVPHn19jQ=/

This PR refactors the relationship between the ShaderGraphModel and the GraphHandler (the CLDS model), to look like this:
image

The ShaderGraphModel no longer owns the GraphHandler, the ShaderGraphAsset is now responsible for owning and instantiating the GraphHandler.

Unity_dPf2XLcCoj.mp4

Outstanding issues with this branch:

  • Save/Load doesn't seem to work correctly, it seems to reset the graph at the moment, suspect there's something wrong with the import process in ShaderGraphAssetUtils.HandleImportAssetGraph

Testing status:

Manual developer testing to validate what works and what doesn't. Automated tests were not run yet at time of branch creation.


Comments to reviewers

Notes for the reviewers you have assigned.

@Nightmask3 Nightmask3 marked this pull request as ready for review December 3, 2022 00:44
@Nightmask3 Nightmask3 requested a review from a team as a code owner December 3, 2022 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant