• 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 Sammael · Mar 24, 2013 at 11:28 PM · uvprocedural mesh

Mesh UV Properties

Hi guys, I'm starting to mess around with procedural mesh generation in Unity. I have a question that I hope someone here can help me with. What are the differences between mesh.uv, mesh.uv1 and mesh.uv2 ? I know that Uvs are used to map the textures coordinates for a 3D object, but why do I need a uv1 and a uv2 for?

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
1

Answer by Eric5h5 · Mar 24, 2013 at 11:44 PM

uv and uv1 are the same. Any 3D app has the ability to have multiple uv sets per object, so uv and uv2 are the first two uv sets. Light mapping is a typical use for a second UV set.

Comment
Add comment · Show 2 · 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 alexkaskasoli · Feb 25, 2014 at 05:56 AM 0
Share

@Eric5h5 I have applied a uv2 to my mesh and used a self-illum diffuse shader. Do you have any idea why the shader is ignoring uv2 for the lightmap and uses uv to set the light?

avatar image DAVco · May 21, 2014 at 01:29 PM 0
Share

I'm currently playing around with meshes too - I thought I'd post here because it is the top hit on Google, excluding the manual pages.

From what I've seen $$anonymous$$esh.uv is not the same as $$anonymous$$esh.uv1. $$anonymous$$esh.uv1 is, however, identical to $$anonymous$$esh.uv2 (as of Unity 4.3, anyhow). The manual page for $$anonymous$$esh doesn't actually list uv1 as being part of the official interface, so I suspect it is supposed to be deprecated.

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

14 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

Related Questions

UVs on procedurally generated mesh 1 Answer

Procedural Mesh UV Problem (UVs 'mirrored' instead of 'repeating') 0 Answers

Is there any way to tile a texture within a single triangle of a procedural mesh? 1 Answer

UV problem on procedural mesh generation 1 Answer

How do I calculate the UV's for a procedurally generated shape? 2 Answers

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