• 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 stelk · Jun 16, 2013 at 12:16 PM · textureplanetiles

Seamless tiling of automatically textured planes

I'm creating tiles using the plane primitive of Unity and I'm positioning these tiles next to each other and assigning a texture to each one. Example: alt text

As you can see the seperation between one plane and the other is clearly visible. Is there a way to fix this?

PS: I'm of course creating these by code. It's a dynamic map that loads according to where the user moves.

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 teomaragakis · Apr 20, 2014 at 06:43 PM 0
Share

Could you post the code that does this? I'm trying to find a way to do something similar and I'm going crazy.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by stelk · Jun 17, 2013 at 12:54 PM

Solved. In case anyone is wondering, this was caused by a slight repetition in the textures so I had to set

 p.renderer.material.mainTexture.wrapMode = TextureWrapMode.Clamp;

in order to avoid tiling.

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 Guhanesh · Feb 20, 2017 at 09:47 AM 0
Share

p.renderer.material.mainTexture.wrap$$anonymous$$ode = TextureWrap$$anonymous$$ode.Repeat; for tile repeating.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

15 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

Related Questions

Assigning UV Map to model at runtime 0 Answers

Opaque Textures Not Working! 1 Answer

copying a 2d/3d plane/slab from one part of world and displaying it in another? 0 Answers

Change Mat/Texture of Procedural Chunk Combind Meshes 0 Answers

Issue mapping texture to imported quad 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges