Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Error with Terrain Composer

Discussion in '5.1 Beta' started by Todd-Wasson, Apr 19, 2015.

  1. Todd-Wasson

    Todd-Wasson

    Joined:
    Aug 7, 2014
    Posts:
    1,079
    I'm not sure if this is a problem with Unity or TC or what, so I've reported it here and in the TC thread.

    Showstopper error with Unity Beta 5.1.0b3:

    Code (csharp):
    1.  
    2. Assets/TerrainComposer/Editor/TerrainComposer.js(17284,42): BCE0055: Internal compiler error: Value is less than UInt64.MinValue.
    3.  
    Line of code is this:

    Code (csharp):
    1.  
    2. @DrawGizmo(GizmoType.NotSelected | GizmoType.Active)
    3.  
    My project will not run at all with this error.
     
  2. Todd-Wasson

    Todd-Wasson

    Joined:
    Aug 7, 2014
    Posts:
    1,079
    If I delete the line my project works normally. Not sure what it does but I can live with it for now.
     
  3. camel82106

    camel82106

    Joined:
    Jul 2, 2013
    Posts:
    304
    Hello,
    it's mentioned in release notes:
    Editor: Rename and introduce a some GizmoType enum values to be more explicit about how they work with selection hierarchy. See the docs

    TerrainComposer uses GizmoType.NotSelected enum this is now oblosete and may be used
    GizmoType.NotInSelectionHierarchy

    Nice day
    Peter
     
    webik150 likes this.
  4. Todd-Wasson

    Todd-Wasson

    Joined:
    Aug 7, 2014
    Posts:
    1,079
    Ok, thanks.
     
  5. loko08

    loko08

    Joined:
    Oct 6, 2013
    Posts:
    57
    Hello Todd, this actually made a new error appear when compiling:



    The only fix that we found was actually removing the line (commenting it).
     
  6. ImpossibleRobert

    ImpossibleRobert

    Joined:
    Oct 10, 2013
    Posts:
    527
    I am pretty sure it's a bug in Unity. If the constant was changed it would simply say that it does not recognize the name. It started to appear in 5.0.1p1 (which should be compatible to the f1). I opened bug reports for it already. No reaction from Unity so far.
     
  7. thorp

    thorp

    Joined:
    Dec 6, 2013
    Posts:
    9
    The line generating the error is now at 16947. Changing GizmoType.NotSelected to GizmoType.NotInSelectionHierarchy gave a clean compile for me, thanks!
     
  8. ImpossibleRobert

    ImpossibleRobert

    Joined:
    Oct 10, 2013
    Posts:
    527
    Newer version of terrain composer also fix this :)