Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nFighter on February 16, 2019, 08:17:44 AM

Title: Cinemachine - change Animated Target [SOLVED]
Post by: nFighter on February 16, 2019, 08:17:44 AM
Hey! I'm trying to set cinemachine's "animated target" property on runtime. And seems like I'm not understand how exactly I can get the proper "object" from the "game object" with attached animator.

In simple words: I have a character Game Object with mechanim animator. I want to set this animator to Cinemachine's virtual camera "animated target" to react on animation states. I tried some combination of get/set properties but didn't success. (my character created on the runtime, so I can't just drag-n-drop it to the playmaker state)
Title: Re: Cinemachine - change Animated Target
Post by: nFighter on February 16, 2019, 08:33:28 AM
UPD. Managed it! Totally forgot about "Get Component" action  ;)