Fixed

Animating Material Properties

Anonymous 5 years ago updated by Peter - Soxware Developer 5 years ago 5

Hi I have been trying to figure out how to change a materials properties while using U-Motion so that they can sync up with my animations, I thought I figured it out but it doesn't seem to be working.

In order to test this out first I made an incredibly simple material shader in amplify shader editor, just a float property in the albedo that changes it from black to white with a min and max slider.
It can be adjusted in the inspector tab with the material and I've also tested it with the regular animation window and it seems to work fine there.

So with U-Motion after a bit of sleuthing I realized I can add custom constraints that adjust component properties in the same way u-motion affects its blend shapes. So I added a custom constraint changed it to component properties, selected the mesh, used the ... to select skinnedmeshrenderer, material, property. Checked preview added constrain input so it can be a slider.
Went to pose mode and it doesn't seem to work.

Unlike blend shapes moving the slider doesn't appear to do anything to the material property. I tested in the unity animation window and it works there. It was also listed with the mesh in a category under skinnedmeshrenderer along with the blend
shapes.
I tried key framing the different value points in u-motion but it doesn't seem to change anything either.  Again I did the same test in the regular animation window and it worked fine there.

I will admit I am still super new to Unity, U-Motion and shaders so I could have missed something obvious but I have spent too much time today trying to figure this out.

My ultimate goal with the shader was to use a 2d Texture to animate the mouth and possibly some other special effects through properties during animation so not being able to preview them while animating the body will be rather annoying too say the least.

I can take and post some example photos later if it might help, but its late and I am tired.

Thank you in advance for your help

-Z

UMotion Version:
1.20p03 Professional Edition
Unity Version:
2019.2.10f1

Answer

Answer
Fixed

This issue is fixed in UMotion V1.20p04 (pending Asset Store review at the time of writing).

Thanks for reporting.

Best regads,
Peter

Under review

Hi,

thank you very much for your support request.

The way you've done it should be correct. This might be a bug, may I ask you that you provide this simple example that you've mentioned (please include only the things necessary for me to reproduce) and send it to me via the email support form? If it exceeds the upload size, please request a link to my Dropbox (also via the email support form).

Thank you very much.

Best regards,
Peter

Working on fix

Thank you very much for sending me the necessary files. I'm able to reproduce this issue and am working on a fix. This is going to take several days (as it's not that easy to fix). I'm going to keep this thread updated.

Best regards,
Peter

Answer
Fixed

This issue is fixed in UMotion V1.20p04 (pending Asset Store review at the time of writing).

Thanks for reporting.

Best regads,
Peter

Hi OP here, I just tried the update and it worked perfectly! I just wanted to thank you! Thank you for the incredibly quick initial response, thank you for keeping the thread updated and thank you fixing the bug! Thank you!

-Z

Thanks for the nice words. Glad everything is now working as expected.

Don't hesitate to contact me in case you find any other issue.

Best regards,
Peter