Search Unity

[SOLVED] Can't build project (Unity 2019.2.12f1)

Discussion in 'Timeline' started by AlphaDreams, Dec 19, 2019.

  1. AlphaDreams

    AlphaDreams

    Joined:
    Jan 21, 2015
    Posts:
    30
    Hello everyone!

    I got a pretty bad bug with the timeline package. In the Unity Editor, everything works great, but as soon as I build my game, the build fail with a lot of compiler errors.

    For example:

    The type or namespace name 'Timeline' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

    The type or namespace name 'ClipEditor' could not be found (are you missing a using directive or an assembly reference?)

    The type or namespace name 'CustomTimelineEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)


    And so on...

    I'm on Unity 2019.2.12f1, the Timeline package is v1.1.0, and I use Cinemachine 2.3.4.

    Thank you !
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Do you have scripts that extend or use ClipEditor, or anything in UnityEditor.Timeline? If so, they should be inside an Editor folder (or wrapped in #if UNITY_EDITOR).
     
    AlphaDreams likes this.
  3. AlphaDreams

    AlphaDreams

    Joined:
    Jan 21, 2015
    Posts:
    30
    OK, I feel quite dumb. It works now, thank you so much !