-
Notifications
You must be signed in to change notification settings - Fork 849
[URP][Converter] anim clip converter #4773
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
Conversation
- Add status messages - Also clean up to use global object identifiers
Beautified some code
Ensures we do not skip clips that have a mix of upgradable and non-upgradable properties
It appears that you made a non-draft PR! |
I'm hitting an error after going through domain reload. I'm running the converter and then I
|
I spent some time playing with the animation clip converter trying to make sense of the assets that were shown in the UI after having successfully updated them. When saving the assets to disk and reopening the converter, I'm retrieving the exact same list of animation clips to upgrade, but this time the operation mostly ends in failure. Some things to consider:
|
@SimonBZ Domain reload is an issue and there are other PR's that will fix that. On is in the default Material Converter and on is in A Lazy load GUI states. The clips that are green are the "WithMaterialProperties_OnlyUsedByNotUpgradable" clips that are showing up in the upgraded list. Since our filter is set to "UsedByUpgraded | UsedByNonUpgraded", these show up as upgraded while we haven't done any work on them. Although not an error per se, these should probably be in the nonUpgraded list still. |
- Remove 0 case (same as Unknown) and make it clear that it is the usage that is unknown, rather than the error being unknown. - Change unknown message to specify the problem may also be that the clip is used, but by objects with no renderers - Report errors for used by upgraded and ambiguous cases, whether or not they pass through the filter. - Changed messages from "failed to upgrade" to "was not modified" to make the outcome a little clearer
material/clip upgrade.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested if Animation clips appear in the converter window and are successfully converted to URP.
Purpose of this PR
Added an animation Clip Converter.
In menu Window -> Rendering -> Render Pipeline Converter
We now have a new converter called animation clip converter.
This will convert animation clip properties if needed.
This can be tested in UniversalUpgradeTest project
for example changing
attribute: material._Color.a to attribute: material._BaseColor.a
If opening the test project and initialize the converters you will have the following

After running convert you will have something that looks similar to this
