Changing blur quality at runtime?

Full-scene Motion Blur for Unity Pro

Changing blur quality at runtime?

Postby dijital » Tue Jan 30, 2018 9:53 am

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.
dijital
 
Posts: 10
Joined: Mon Feb 27, 2017 6:02 pm

Re: Changing blur quality at runtime?

Postby Amplify_Borba » Tue Jan 30, 2018 2:55 pm

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 420 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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Motion

Who is online

Users browsing this forum: No registered users and 0 guests

cron