How does Unity read FBX UV maps?

Hello
I’m wondering how unity reads a fbx with two UV maps assigned to one mesh.
I’m using the FBX sdk to write the file, the first diffuse uv map

        LayerElementUV: 0 {
            Version: 101
            Name: "DiffuseUV"
            MappingInformationType: "ByPolygonVertex"
            ReferenceInformationType: "IndexToDirect"
            UV: *104 {
a: ...
} 
            UVIndex: *52 {
a: ...
} 
        }

then the bump UV map

        LayerElementBumpUV: 0 {
            Version: 101
            Name: "BumpUV"
            MappingInformationType: "ByPolygonVertex"
            ReferenceInformationType: "IndexToDirect"
            UV: *104 {
a: ...
} 
            UVIndex: *52 {
a: ...
} 
        }

This fbx imports fine in maya and both UV maps shows up fine in UV editor.
In unity however it is only using the UV map from diffuse UV channel. I’ve set the unity material to be bumped diffuse. Both diff and bump use diffuse UV’s

attaching fbx

370049–12824–$test_173.zip (3.51 KB)

it just reads uv channel 0 and 1 (and only those, so don’t waste time putting more than 2 in)

it does not care you how call them I think because it has no meaning to unity

the assignement to the uv channel will happen in the shader where you bind the channels and tell the texture to use the corresponding uv channel

see the shader sources for all lightmap shaders.
I don’t think bumpmap shaders as present in unity use a second uv channel as that normally makes no sense as the bumpmap has a direct relation to the diffuse coloring and thus normally the same uv too

edit: solved.

btw the namings I had for UV is written from fbx sdk. It has support for about every surface type, would be cool if unity would recognize this on import…