playMaker

Author Topic: Cinemachine - change Animated Target [SOLVED]  (Read 1493 times)

nFighter

  • Beta Group
  • Full Member
  • *
  • Posts: 174
    • multiplayer adult fighting
Cinemachine - change Animated Target [SOLVED]
« 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)
« Last Edit: February 16, 2019, 08:34:09 AM by nFighter »
indie developer of multiplayer adult fighting
http://nakedfighter3d.com

nFighter

  • Beta Group
  • Full Member
  • *
  • Posts: 174
    • multiplayer adult fighting
Re: Cinemachine - change Animated Target
« Reply #1 on: February 16, 2019, 08:33:28 AM »
UPD. Managed it! Totally forgot about "Get Component" action  ;)
indie developer of multiplayer adult fighting
http://nakedfighter3d.com