Answer the question
In order to leave comments, you need to log in
What is the bug in Unity3d?
When running a project using - SRTS Pack - https://www.assetstore.unity3d.com/en/#!/content/21370 - in Unity 5.6 an error appears:
Assets/Other packs/RTS Pack/Standard Assets/Scripts/Utility Scripts/MeshCombineUtility.cs(27,39):
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 an assembly reference?
int curStripCount = combine.mesh.GetTriangleStrip(combine.subMeshIndex).Length;
Answer the question
In order to leave comments, you need to log in
MeshCombineUtility is an old old script.
there it has a checkmark/setting associated with TriangleStrip - this gluing option is irrelevant and pointless)
and so all this (the code that is executed with this flag) can be safely removed from the script and used as if this flag is not inserted. and you will be happy.
And in general, if you do not need to glue the models on the runtime, you can generally remove the entire script and its dependencies.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question