Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
1
Question by DigitalKnifeInteractive · Jan 01, 2015 at 08:24 PM · spritebugspritesheetedge

[2D graphical bug] Sprite Edge blends. Why this is happening?

Why this is happening??? x( I'm using spritesheets and the seperate sprites's edge bledn tougether. Not a unit of a line, only one pixel of it. You can clearly see it on the images. If you zoom the image to original size, its much more clearly visible. if im thinking right, the line is not random. It only happens, if in the spritesheet, the sprite under the current sprite has a content in the first row pixels, for some reasons it blends with the sprite... Here is an explonation about my thoughts: http://imgur.com/nPoL1Pn

http://imgur.com/XB6vapp
http://imgur.com/N5fbamQ

Why does this happen? How should I fix this?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by CameronPenner · Oct 29, 2015 at 07:52 PM

Set the "Wrap Mode" on your texture to "Clamp".

This will stop Unity sampling from the other side of the texture when it's drawing edges that are smaller than a pixel.

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 impurekind · Aug 09, 2018 at 08:03 PM 0
Share

I have similarly tried using the sprite editor with a sprite I have in a sprite sheet, with no visible visual glitches, and when I look at the game in the game after putting it through Unity's sprite editor and cutting it up accordingly, it has a couple pixels that randomly appear as the edge of the sprite as it's animation.

And I have set it to Clap when going through this.

So, any other ideas as to what might be causing this issue and how to fix it?

Edit: I noticed it was because Unity hadn't cut up the sprite perfectly so the boxes for each splice were just a tiny bit off. I moved each of them into the right place and the issue was resolved. Looks like I just need to be really careful about the exact resolution numbers I use for my sprites and probably also the amount per unit I set when loading the sprite into Unity initially too.

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

27 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 avatar image

Related Questions

Gui Box - Texture - Spritesheet 0 Answers

Lines appear between sprites from sprite sheets 7 Answers

Sprite texture incorrect 0 Answers

Sprite Previews not displaying! 0 Answers

Black sprites and blinking animations - Android 1 Answer


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