Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by ber-games · Jan 31, 2016 at 04:17 PM · texturematerialobjectbeginnerrepeat

how to repeat a texture in the object?

I am having problem to repeat a material in the object...
I watch a lot of videos about it, but everyone say the same think: to put the material with a texture in the object and next is to change the shader to unlit/texture and put in the tiling in something like 5 and it will make my material repeat in the object.
But it doesn't work to me, the texture only decreases to the left.
What i need do to repeat the texture?

The problem:
alt text

alt text
see that the object (the floor) is not correct, the texture only decreases to the left when i increase the tiling..
how i fix it?

print.png (103.6 kB)
print2.png (109.9 kB)
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

2 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by lelis718 · Mar 13, 2016 at 08:31 PM

In case it helps The sprite image has to be set to texture mode in inspector.

Open the image in inspector set the Texture type to Texture instead of sprite and in Wrap Mode set to REPEAT

This link has the solution http://answers.unity3d.com/questions/775619/texture-stretches-when-tiled-in-editor.html

Hope it helps :)

Comment
Add comment · Show 3 · 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 $$anonymous$$ · Sep 18, 2017 at 01:45 PM 0
Share

Thanks friend, I had the same problem when I imported objects from $$anonymous$$aya. With ur help I solved it.

avatar image KokodokoGames · Feb 13, 2018 at 12:19 PM 2
Share

In the latest Unity version, there is no "Texture" type available anymore in the inspector. Did they change the way to create tiled images?

avatar image AndreiMarian KokodokoGames · Nov 17, 2019 at 12:30 PM 0
Share

It's the "Default" setting. Note that it won't work with UI>Image as this specifically requires a sprite.

avatar image
1

Answer by taxvi · Oct 02, 2016 at 09:29 AM

As for Unity5.4.1 I think there is a bug in the engine. I've tried all sort of setups but the texture would still clamp instead of repeat. FINALLY, I got it working when I set it to repeat from the script at runtime:

 mymaterial.mainTexture.wrapMode = TextureWrapMode.Repeat;

hope this helps some lost souls out there

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

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

51 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 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

Problem with a transparent texture in an object that already has a material 0 Answers

Ever seen blurry textures like this? 0 Answers

Texture position on multiple mesh 0 Answers

Tiling texture gets weird 1 Answer

use sprites as material in 3D shader 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