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 maxxiedivine · Mar 08, 2012 at 12:15 AM · 2dtextureexplosionwallremove

How to remove part of a texture?

Does anyone know how to remove part of a texture in a 2D space? For example, if I was to shoot a missile at a 2D wall and the missile had an explosion radius that would remove part of that wall. I was trying to figure if I placed some sort of circle on top of that texture then alphaed it out, but I can't figure this out. Thank you so much.

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 homer_3 · Mar 08, 2012 at 03:35 AM 0
Share

You'll probably want to do a model swap. If you simply use alpha to made part of the texture disappear, the hit box will still be there blocking your path.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by DGArtistsInc · Mar 08, 2012 at 03:29 AM

In order to "Remove a Part of a texture" you would have to make separate textures and replace the full texture with the partially full texture when it is hit.

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 maxxiedivine · Mar 08, 2012 at 08:34 AM

Thank you for your reply! I was considering that, but I was hoping to find a solution like in Worms Armageddon or Monkey Quest ThunderBow. Such that when a missile hits any part of the terrain(texture), then it removes anything within that radius where the missile hit. I was thinking of doing something in 3D like shatter in Maya to deal with this, but I was hoping to keep it 2D. Please let me know if anyone comes up with alternatives to texture swapping. There was a comment posted by homer_3 where alpha could somehow be used. I will look into this. Thank you for your help!

Comment
Add comment · Show 2 · 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 vamsi.ac · Feb 05, 2014 at 10:47 AM 0
Share

Did you manage to find a work around to this issue? i am looking for a similar solution.

avatar image jugnu · Sep 22, 2016 at 12:18 PM 0
Share

hi @maxxiedivine.... I am also looking for similar effect. Like an eraser. If i am making a color book and then erasing the part of the texture which i made.

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

8 People are following this question.

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

Related Questions

How to create an explosive force with Unity2D 4 Answers

How do I optimize my explosion script? 1 Answer

is it possible to make 2d real time coloring with masks (paint app) 1 Answer

How to make character read a poster in a wall? 1 Answer

Need Help - 2D Flat Ground Materials 2 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