Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Cinemachine 'DocumentationSortingAttribute' Error

Discussion in 'Cinemachine' started by agmdstudiosllc, May 11, 2020.

  1. agmdstudiosllc

    agmdstudiosllc

    Joined:
    Jul 12, 2018
    Posts:
    9
    I'm getting the following error on the console when trying to play the timeline:
    Cinemachine 'DocumentationSortingAttribute' does not contain a constructor that takes 2 arguments
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    Sounds like you have a corrupted Cinemachine install. Do you have a mix of old and new versions?
     
  3. agmdstudiosllc

    agmdstudiosllc

    Joined:
    Jul 12, 2018
    Posts:
    9
    No...only the latest from package manager. It was working fine all day until it wasn't.
     
  4. agmdstudiosllc

    agmdstudiosllc

    Joined:
    Jul 12, 2018
    Posts:
    9
    I think it started after I applied a "Hard Look At" to one of the cameras. I have since removed them, but the eroor persists. The errors show up even if cinemachine is uninstalled.
     
  5. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    Applying a HardLookAt can't possibly change the code!
    Are you sure you don't have remnants of another CM version in your project?
    In the past, when CM was an asset store package, some assets shipped with embedded versions of CM. Are you 100% sure you don't have one of those?
     
  6. agmdstudiosllc

    agmdstudiosllc

    Joined:
    Jul 12, 2018
    Posts:
    9
    I'll have to assume I do, even though I don't see it. What do you recommend I do next?
     
  7. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    Try searching in your assets for DocumentationSortingAttribute
     
  8. agmdstudiosllc

    agmdstudiosllc

    Joined:
    Jul 12, 2018
    Posts:
    9
    Nothing found...CORRECTION. It found this script: CinemachineSameAsFollowObject.cs and CinemachinePostFX.cs
     
  9. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    Where is that script? Normally that belongs to the CM package. If it's in your assets, outside the package, how did it get there?
     
  10. agmdstudiosllc

    agmdstudiosllc

    Joined:
    Jul 12, 2018
    Posts:
    9
    It's in the Assets folder in _UnityExtensions/Cinemachine
     
  11. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    Delete it. Where did it come from? Is anyone using? Anything else suspect in there?
     
  12. agmdstudiosllc

    agmdstudiosllc

    Joined:
    Jul 12, 2018
    Posts:
    9
    No idea where it came from. There's a Base and PostFX folder, with an Editor and Runtime folder within.
     
  13. agmdstudiosllc

    agmdstudiosllc

    Joined:
    Jul 12, 2018
    Posts:
    9
    Deleting that folder seems to have worked. Thank you!
     
  14. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,268
    The entire Cinemachine folder is suspect. Try deleting the whole thing. (I hope you made a backup).
    Does the error go away afterwards?

    EDIT: Just saw your last post. Excellent!