Changing blur quality at runtime?

Full-scene Motion Blur for Unity Pro
Post Reply
dijital
Posts: 10
Joined: Mon Feb 27, 2017 6:02 pm

Changing blur quality at runtime?

Post by dijital »

Hi,

I cant find any documentation on how to change amplify motions setting at run time (blur quality level, quality steps, motion scale etc) via a script.

Where can I find information on how to do this?

Thanks.
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Changing blur quality at runtime?

Post by Amplify_Borba »

Hello dijital, thank you for getting in touch!

You may access Amplify Motion through code directly as a camera component through GetComponent, just like any other post effect.
Sample.zip
(412 Bytes) Downloaded 872 times
Feel free to check out this sample script provided above, you may add it as a component to any object present on the scene and then set it to reference the camera that has the Amplify Motion component, and during run time it will set the MotionScale to 0.

Please let me know if this helps, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply