Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Dok101 · Mar 23, 2015 at 09:00 PM · unity 5error

error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `SetTriangle' and no extension method

Hello

When I upgraded to Unity 5 a few days ago I got these three errors from the Script MeshCombineUtility

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

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

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

I read that if you changed it from 'SetTriangleStrip' to 'SetTriangle' and 'GetTriangleStrip' to 'GetTriangle' that it would fix the problem but so far that has just kept the same errors.

I've looked up other threads but I haven't been able to find a solution to fix the problem and I'm hesitant to mess around with the script too much in case I do something too drastic.

Thank You

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

5 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by Riagan · Apr 19, 2015 at 02:41 PM

I did what you suggested Dok101. But it looks like you had a spelling error, I think it should be, "SetTriangles" and "GetTriangles" (Plural, with the "s" at the end). At least that just worked for me...

If nothing else, thanks for the hint!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
7

Answer by julioluchesi · Oct 06, 2015 at 02:47 PM

My issue was:

"GetTriangleStrip" (not exists at all)

Replaced for "GetTriangles"

Works for me, thanks!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
2

Answer by Kiwasi · Mar 28, 2015 at 04:21 AM

Did you check out the documentation?

http://docs.unity3d.com/ScriptReference/Mesh.html

Appears there is no method for getting an individual triangle in the current API. How you fix it will depend on your use case.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Zubeid · Jan 01, 2017 at 08:29 AM

I had the same error and I did exactly what juliouchesi did. I changed the GetTriangleStrip to GetTriangles as well as change SetTriangleStrip to SetTriangles

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Prashhh · Jan 17, 2017 at 11:02 AM

change GetTriangleStrip to GetTriangles and SetTriangleStrip to SetTriangles..... and it works....!

Thanxxx...!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Help "Too many threads" 0 Answers

Canvas Problem 1 Answer

Can't Establish connection using NetworkTransport 0 Answers

The name 'TrackManager' does not exist in the current context [Unity Vuforia Ground Plane Project] 0 Answers

BCE0018 asset package giving error, folder is in standard assets. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges