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 /
This question was closed Mar 19, 2016 at 03:44 PM by Rickywild.
avatar image
0
Question by Rickywild · May 31, 2015 at 07:23 PM · texturespritequalitypixel

Texture Quality VS (Sprite 2D and UI) Quality

Hi,

I have a problem with the quality I get when using Texture Type: Texture.

I'm working on a 2D platform runner and just finished working on the parallax scrolling for my backgrounds. The technique I've gone for, is shifting the UV coordinates of the texture applied to a quad. This works, however I find myself unsatisified with the quality of the texture, despite playing around with it's properties in the inspector to get it looking better.

I've set Filter Mode to Point. I've set Max Size to size equal all greater than my texture. I've set Format to truecolor. I've also tried the various options for Texture Type, Advanced didn't help with the quality.

I have noticed when setting Texture Type to Sprite 2D and UI, the quality appears as intended,pixel perfect?

My question, is it possible to use the uv coordinates when the texture type is set to Sprite2D and UI? and if so, how would I go about doing this?

If i'm wanting to shift the texture, when Texture Type is set to Texture, i can use the following...

 GetComponent<Renderer>().material.mainTextureOffset = ect ect

This doesn't seem to be the case with a Sprite 2D and UI however. Would somebody please point me in the right direction?

Thanks for any help in advance.

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

  • Sort: 
avatar image
1
Best Answer

Answer by BMayne · May 31, 2015 at 07:36 PM

Hey there,

The default shader does not support texture offsets for Unity UI. You will have to write your own shader if you want these results.

Just as a heads up we have into some weird problems when trying to create this effect.

Cheers,

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 Rickywild · May 31, 2015 at 08:37 PM 0
Share

Thanks B$$anonymous$$ayne

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Bad quality of the sprite in Unity 0 Answers

How to achieve 2D pixel perfect collision physics (like Badland) in Unity3D ? 3 Answers

How to change color of all the pixels from a sprite that have a given color value? 1 Answer

Sprite Renderer is wrapping bottom pixel when it shouldn't be 1 Answer

Anti aliasing with sprites 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