Skip to content

[SG2] Asset structure refactor#7745

Open
Nightmask3 wants to merge 8 commits into
sg2/mainfrom
sg2/asset-structure-refactor
Open

[SG2] Asset structure refactor#7745
Nightmask3 wants to merge 8 commits into
sg2/mainfrom
sg2/asset-structure-refactor

Conversation

@Nightmask3

@Nightmask3 Nightmask3 commented Nov 30, 2022

Copy link
Copy Markdown
Contributor

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