Search Unity

How to Get Body Component?

Discussion in 'Cinemachine' started by wangwenxinx, Jul 7, 2020.

  1. wangwenxinx

    wangwenxinx

    Joined:
    Mar 25, 2020
    Posts:
    7
    In Cinemachine's ChildComponent
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    From script, if you want to get, for example, the Transposer, you do
    var transposer = vcam.GetCinemachineComponent<CinemachineTransposer>()