Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

2019a11 Cinemachine doesn't see Timeline namespace

Discussion in 'Cinemachine' started by taylank, Dec 5, 2018.

  1. taylank

    taylank

    Joined:
    Nov 3, 2012
    Posts:
    44
    Hi, I'm having issues after switching to the package manager versions of Cinemachine and Timeline (and yes, I removed the asset store version first).

    Library\PackageCache\com.unity.cinemachine@2.2.7\Runtime\Timeline\CinemachineTrack.cs(4,19): error CS0234: The type or namespace name 'Timeline' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

    There are a bunch of other compile errors all related to classes in Timeline namespace. I have Timeline showing up as an installed package and I can refer to it just fine from game code. Any idea what's going on?
     
    Last edited: Dec 5, 2018
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,828
    In Unity 2019.a11, timeline has become a package, breaking a whole bunch of other packages that are assuming that Timeline is still built-in, including Cinemachine. Until these issues are fixed, you'd do well to downgrade Unity back to something earlier
     
    Mooncakecmdr likes this.
  3. taylank

    taylank

    Joined:
    Nov 3, 2012
    Posts:
    44
    Thanks and I appreciate the timely response.
     
  4. Mooncakecmdr

    Mooncakecmdr

    Joined:
    May 27, 2013
    Posts:
    49
    After Add to my manifest.json the timeline:
    Code (javascript):
    1. "com.unity.timeline": "0.0.0-builtin",
    I upgrade via Package Manager UI the cinemachine from 2.2.7 to 2.3.0-preview1:
    upload_2018-12-5_20-12-54.png
     
    pbrito_unity likes this.
  5. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,828
    2.3.0 is for Unity 2019.1 and up. It addresses the Timeline dependency issue.
     
    Mooncakecmdr and Lars-Steenhoff like this.
  6. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    790
    *You need
    "registry": "https://staging-packages.unity.com",
    in the manifest to see this version which works with 19.1. I removed the manifest because UT at Addressables forum told me to and forgot to put it back.
     
  7. drordoit

    drordoit

    Joined:
    Sep 7, 2013
    Posts:
    24
    I don't have any experience with the "manifest.json" , and got many errors right now.
    Can you please explain where is the file (I found several of my the same name), and where to add the line?
    P.s : I got the problem with "Cinameshime" and the "Unit 2d animation" package
     
    Last edited: Dec 14, 2018 at 1:31 PM
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,828
    This file is MyProject/Packages/Manifest.json.
    You add the line right before the "dependencies" line.
    Like this:
    Code (CSharp):
    1. {
    2.   "registry": "https://staging-packages.unity.com",
    3.   "dependencies": {
    4.     "com.unity.package-manager-ui": "0.0.0-builtin",
    5.     "com.unity.ads": "2.0.8",
    6.     "com.unity.analytics": "3.2.2",
    7.     "com.unity.cinemachine": "2.3.0-preview.2",
    8.     "com.unity.collab-proxy": "1.2.9",
    9.     "com.unity.purchasing": "2.0.1",
    10.     "com.unity.textmeshpro": "1.3.0",
    11.     "com.unity.timeline": "0.0.0-builtin",
    12.     "com.unity.xr.legacyinputhelpers": "1.0.0",
    13.  
    14. etc
     
  9. drordoit

    drordoit

    Joined:
    Sep 7, 2013
    Posts:
    24
    Found it, and already have the line "com.unity.timeline": "0.0.0-builtin", in it with no option to update to "cinemachine 2.3.0". What can I do?
     
  10. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,828
  11. drordoit

    drordoit

    Joined:
    Sep 7, 2013
    Posts:
    24
    Nop. I added the line and now the package manager says he can't load any packages and give me some new errors in the console :
    Code (CSharp):
    1. Cannot perform upm operation: Cannot set property 'isRootDependency' of null [NotFound]UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
    Code (CSharp):
    1. Error fetching package list (offline mode).UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
    Code (CSharp):
    1. Error fetching package list.UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
     
  12. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,828
    Maybe you created a syntax error in the json. Can you post the contents here?
     
  13. drordoit

    drordoit

    Joined:
    Sep 7, 2013
    Posts:
    24
    I reentered the line and the package manager is working now bow all the packages appear as "uninstall" without the option to install them. That the file content :
    Code (JavaScript):
    1. {
    2.   "dependencies": {
    3.     "com.unity.2d.animation": "1.0.16-preview.2",
    4.     "com.unity.2d.ik": "1.0.6-preview.1",
    5.     "com.unity.ads": "2.0.8",
    6.     "com.unity.analytics": "3.2.2",
    7.     "com.unity.cinemachine": "2.2.7",
    8.     "com.unity.collab-proxy": "1.2.9",
    9.     "com.unity.package-manager-ui": "0.0.0-builtin",
    10.     "com.unity.purchasing": "2.0.1",
    11.     "com.unity.textmeshpro": "1.3.0",
    12.     "com.unity.timeline": "0.0.0-builtin",
    13.     "com.unity.xr.legacyinputhelpers": "1.0.0",
    14.     "com.unity.modules.ai": "1.0.0",
    15.     "com.unity.modules.animation": "1.0.0",
    16.     "com.unity.modules.assetbundle": "1.0.0",
    17.     "com.unity.modules.audio": "1.0.0",
    18.     "com.unity.modules.cloth": "1.0.0",
    19.     "com.unity.modules.director": "1.0.0",
    20.     "com.unity.modules.imageconversion": "1.0.0",
    21.     "com.unity.modules.imgui": "1.0.0",
    22.     "com.unity.modules.jsonserialize": "1.0.0",
    23.     "com.unity.modules.particlesystem": "1.0.0",
    24.     "com.unity.modules.physics": "1.0.0",
    25.     "com.unity.modules.physics2d": "1.0.0",
    26.     "com.unity.modules.screencapture": "1.0.0",
    27.     "com.unity.modules.terrain": "1.0.0",
    28.     "com.unity.modules.terrainphysics": "1.0.0",
    29.     "com.unity.modules.tilemap": "1.0.0",
    30.     "com.unity.modules.ui": "1.0.0",
    31.     "com.unity.modules.uielements": "1.0.0",
    32.     "com.unity.modules.umbra": "1.0.0",
    33.     "com.unity.modules.unityanalytics": "1.0.0",
    34.     "com.unity.modules.unitywebrequest": "1.0.0",
    35.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    36.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    37.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    38.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    39.     "com.unity.modules.vehicles": "1.0.0",
    40.     "com.unity.modules.video": "1.0.0",
    41.     "com.unity.modules.vr": "1.0.0",
    42.     "com.unity.modules.wind": "1.0.0",
    43.     "com.unity.modules.xr": "1.0.0",
    44.     "registry": "https://staging-packages.unity.com"
    45.   }
    46. }
    47.  
     
  14. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,828
    you need to put the
    "registry": "https://staging-packages.unity.com"
    line at the same level as dependencies, not inside. Look more carefully at my example and do the same thing.