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. Dismiss Notice

Error in Unity Internal Script in Unity 5 Update

Discussion in 'Editor & General Support' started by rlecobr, Mar 4, 2015.

  1. rlecobr

    rlecobr

    Joined:
    Sep 19, 2013
    Posts:
    10
    Hi. I Have a error in a Unity Internal Script. The error says:

    Assets/Standard Assets/Scripts/Utility Scripts/MeshCombineUtility.cs(27,74): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `GetTriangleStrip' and no extension method `GetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)

    And the other two says:

    Assets/Standard Assets/Scripts/Utility Scripts/MeshCombineUtility.cs(130,73): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `GetTriangleStrip' and no extension method `GetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)

    Exactly the same. and the other error

    Assets/Standard Assets/Scripts/Utility Scripts/MeshCombineUtility.cs(177,30): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `SetTriangleStrip' and no extension method `SetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)

    With this errors, i don't can play or compile my game. I Don't changed the scripts, only updated the scripts and game developer files to unity 5.

    HELP!
     
  2. Dennis Roseman

    Dennis Roseman

    Joined:
    Dec 17, 2012
    Posts:
    4
    *****************************

    I had the same problem with my project---same three error messages. I don't know why this came up but here is what I did, I just altered those three lines in MeshCombineUtility.cs to "kill" the offending three lines of code (lines 27, 130 and 177):

    int curStripCount = 0;//combine.mesh.GetTriangleStrip(combine.subMeshIndex).Length;

    int[] inputstrip = {0,0};//combine.mesh.GetTriangleStrip(combine.subMeshIndex);

    ;// do nothing //mesh.SetTriangleStrip(strip, 0);

    having done that, my game compiles and runs. (with a lot of new warning messages which I have yet to follow up on)
     
    rlecobr likes this.
  3. Wilgrey

    Wilgrey

    Joined:
    Jun 25, 2014
    Posts:
    2
    Hi,

    Can put a list of your assets here? To compare .?
     
  4. rlecobr

    rlecobr

    Joined:
    Sep 19, 2013
    Posts:
    10
    Wilogik no, sorry. the error is only in this scripts

    EDIT: Thank you dennis!
     
    Last edited: Mar 6, 2015
  5. Exi-G

    Exi-G

    Joined:
    Sep 5, 2012
    Posts:
    9
    I had the same problem before. You can fix it by changing GetTriangleStrip to GetTriangles and it will work.