# Exporting from Unity with lightmap and UV1 data set

**URL:** <https://forum.babylonjs.com/t/exporting-from-unity-with-lightmap-and-uv1-data-set/26424>\
**Category:** Questions\
**Created:** [January 3, 2022, 12:06am UTC](https://forum.babylonjs.com/t/exporting-from-unity-with-lightmap-and-uv1-data-set/26424 "2022-01-03T00:06:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kye](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kye/32/15199_2.png) [@kye](https://forum.babylonjs.com/u/kye)\
**Post date:** [January 3, 2022, 12:06am UTC](https://forum.babylonjs.com/t/exporting-from-unity-with-lightmap-and-uv1-data-set/26424/1 "2022-01-03T00:06:49Z")

</div>

Hi, I have setup a test scene in Unity for baking lightmaps (using the Bakery plugin) its correctly generated the lightmap and placed the lightmap uvs in uv1. When I export from Babylon using the Babylon Unity Toolkit, it appears none of the data or the lightmap are getting exported, is there something i can do?

should i maybe do the baking in Blender instead? Maybe theres a better work flow for this.

Thank you.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/a/3af06d6790590a938f05520d8ec4ac69d04357a1.jpeg)

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [January 3, 2022, 12:33am UTC](https://forum.babylonjs.com/t/exporting-from-unity-with-lightmap-and-uv1-data-set/26424/2 "2022-01-03T00:33:16Z")

</div>

If using my Toolkit, i put the lightmaps into UV2 channel

---

<div class="post-metadata">

**Author:** ![kye](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kye/32/15199_2.png) [@kye](https://forum.babylonjs.com/u/kye)\
**Post date:** [January 3, 2022, 1:39am UTC](https://forum.babylonjs.com/t/exporting-from-unity-with-lightmap-and-uv1-data-set/26424/3 "2022-01-03T01:39:25Z")

</div>

thanks for the reply,

when i create primitives in unity it only has uv0 and uv1 and when i bake lighting it automatically places it in uv1, even though everything i read online says lightmaps belong in uv2.

Ill move away from doing tests with primitives and see what i can get with real assets.

thanks.

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [January 3, 2022, 3:51am UTC](https://forum.babylonjs.com/t/exporting-from-unity-with-lightmap-and-uv1-data-set/26424/4 "2022-01-03T03:51:42Z")

</div>

I meant second channel… it may very well be called uv1 in babylon (but its the second uv channel)

---

<div class="post-metadata">

**Author:** ![kye](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kye/32/15199_2.png) [@kye](https://forum.babylonjs.com/u/kye)\
**Post date:** [January 3, 2022, 2:30pm UTC](https://forum.babylonjs.com/t/exporting-from-unity-with-lightmap-and-uv1-data-set/26424/5 "2022-01-03T14:30:20Z")

</div>

thanks. Ive realised a plugin i was using called Mesh Baker for batching meshes to optimise scenes had a setting turned on for removing UV2 channel by default. So unity was using the same uv coordinates for both the lightmap and the albedo. Hence it wasnt working

thanks
