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 SpookyCat · Aug 04, 2010 at 11:05 PM · meshgraphics

Can I have multiple mesh altering scripts on an object?

Hi All Hoping someone can help me out here, I have a script that alters a mesh and it all works fine but if I add another script to the same object that also works on the mesh then that mesh doesnt work, but if I disable the one added before it does work. Is there a way around this?

I tried the Procedural examples given by Unity as well and they suffer from the same effect, ie add a single twist script to a mesh and it works fine, add another to the same mesh and the first one works but the second has no visual result until the first one is disabled.

Can this be solved? Or is a limit of the script system?

Thanks Chris

Comment
Add comment · Show 1
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 Peter G · Aug 19, 2010 at 01:16 AM 0
Share

Are you suggesting you want to blend the two together or override the first. Besides for the performance issue with iterating through the mesh multiple times (which Unity handles generally well). $$anonymous$$aybe try putting the second one in LateUpdate.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by StephanK · Aug 04, 2010 at 11:12 PM

I don't know if this works or not, but having two different scripts manipulating the same mesh seems to be a bad idea, as you don't have any control over the order of execution. Maybe it's a better idea to combine the two scripts into one?

Comment
Add comment · Show 1 · 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 SpookyCat · Aug 04, 2010 at 11:16 PM 0
Share

$$anonymous$$mm order shouldnt be an issue at all, I can combine my scripts but just thought it could be handy to be able to drop multiple scripts onto a mesh and they all work.

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

No one has followed this question yet.

Related Questions

Simple LOD script problem (switching mesh at runtime) 1 Answer

More vertex or more texture ? 0 Answers

RaycastHit.textureCoord --- does the reverse exist? 2 Answers

iOS Crash - s_SkinVertices4Bones_Tangents_NEON_loop 0 Answers

How to subdivide a mesh into 4 quadrants? 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