How to change Cinemachine Impulse Signal Source through script

hey guys i’m not sure how to alter any of the Signal Shape properties through script

I see this definition in the component:

but is there any place I can find a reference to what properties this class has?

We don’t have any online doc yet, but you can right-click on it in Visual Studio and Go To Definition, where you will find in-source XML-style doc.

3600807--292315--upload_2018-8-17_14-16-56.png

I really need to switch to visual studio. Thanks Gegoryl!

For those looking for a quick ref i found the source code in:

C:\Users\Matt\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.cinemachine@2.2.7

and heres my example of setting it via C#

cinemachineImpulseSource.m_ImpulseDefinition.m_RawSignal = prop.impulseNoise;

if anyone is curious why, I was able to use the impulse to trigger the camera shake for each shot. It was a bit weird… the “randomize” didn’t work how i expected, but after tweaking I like the result:

https://vimeo.com/285773653

@mradfo21 Looks nice!

What is it about Randomize that was unexpected? What were you expecting and what did it actually do?

Have a look at this post: How to shake camera with cinemachine? . It isn’t about randomize but it does give some conceptual insight into how impulse works.