Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Uniformly UV-Mapping a Combined Mesh

Discussion in 'Scripting' started by Jmangles, Jan 5, 2016.

  1. Jmangles

    Jmangles

    Joined:
    Aug 1, 2015
    Posts:
    53
    Currently I have a system where I convert a 2D bit array into a huge number of planes and then stitch them together. They all have the same texture and UV information.

    Now while I can tile the texture further, I cannot make the texture bigger as I want to do. I've looked at other questions asking how to UV map in code and they either focus on small cases such as a quad/cube or cases where you create the vertices in code.

    I just need to know if it's possible to take an object made of an arbitrary number of vertices and apply a UV map in code such that a single instance of the texture is applied across its entirety so I could then scale it down for tiling.
     
  2. kietus

    kietus

    Joined:
    Jun 4, 2013
    Posts:
    54
    Hello,

    if you haven't read it yet, that post can be interesting.
    Tiling is handled by the shader.