Search Unity

Extending CinemachineVirtualCamera

Discussion in 'Cinemachine' started by Flag74, Jan 15, 2019.

  1. Flag74

    Flag74

    Joined:
    May 31, 2017
    Posts:
    128
    Is there a way to not break CinemachineVirtualCamera standard inspector if extending it from a new class?
    I can't see Body, Aim, Noise and Extension anymore.
    thx
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    We don't recommend extending it by subclassing. If you can accomplish what you need by authoring CinemachineExtensions and adding them, it's better.

    If you absolutely must subclass, then you'll have to roll your own editor too, as things currently stand. You can copy CinemachineVirtualCameraEditor from the package cache and use that as a starting point.