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 MDarkwing · Aug 08, 2014 at 02:39 PM · offsettiling

Atlasing/tiling/offset on shader and script help?

Im trying to get my UI objects into one atlas and then change the tiling and offset. The thing is I have:

One model of coin 1 texture with 4 different looks of coin (aka 4 textures in 1 atlas) and one material

If i have gold,silver,copper and diamond coin textures and want to make 4 prefabs correspondingly problem is when I change the tiling in the inspector it changes the tiling and offset on each of the 4 objects because as I can see that is specifically shader related setting.

I can't quite work out from searching the web for answer, because all the people and answers mostly consists of gibbering about how you should put all the textures into one atlas, take TextureThat or PackerThat bla bla bla, no one is telling what to do after that.

I've found out that there are some methods like shareMaterial.SetTextureOffset() but I'm not sure how to make them editor friendly so I can see what am I targeting when changing tiling and offset.

Any help is appreciated, thank you 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

· Add your reply
  • Sort: 
avatar image
0

Answer by tanoshimi · Aug 08, 2014 at 02:44 PM

You either need one material and four different models (with correspondingly different UV coordinates), or you need one model and four different materials (with correspondingly different offset parameters).

If you're trying to do it with only one model and one material, as it sounds like you are, then changing the parameters will change it for all instances that share the material.

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 MDarkwing · Aug 08, 2014 at 02:49 PM 0
Share

Yeah I know, that's what I've said in the question. I just don't get it that so much talk about atlasing is being done when this kind of problem can't be solved. $$anonymous$$ost of my objects have a texture with different uv's so I can have 1 material, just doesn't make sense that I should make 2 same models with different UV's for this.

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

21 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

Related Questions

Animation Tiling/Offset 0 Answers

Sprite tiling and offset? 3 Answers

The correct way of making Texture Atlas 0 Answers

Overriding Beast Lightmaps for Dynamic Generation 1 Answer

Dynamic offset & tiling for SpriteRenderer 4 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