1 (edited by jpierront 2016-04-16 16:47:15)

Topic: [Solved] Material doesn't have a texture property '_TrafficTex'

Hello,

This error occurs on each tile display but all works fine for my usage:

Material doesn't have a texture property '_TrafficTex'
UnityEngine.Material:GetTexture(String)
OnlineMapsTileSetControl:UpdateMapSubMesh(Int32, Int32, Int32, Int32, Double, Double, Int32, Int32, Double, Double, Single, Double, Double, Double, Double, Material[]) (at Assets/Vendors/Infinity Code/Online maps/Scripts/Controls/OnlineMapsTileSetControl.cs:1218)
OnlineMapsTileSetControl:UpdateMapMesh() (at Assets/Vendors/Infinity Code/Online maps/Scripts/Controls/OnlineMapsTileSetControl.cs:1042)
OnlineMapsTileSetControl:UpdateControl() (at Assets/Vendors/Infinity Code/Online maps/Scripts/Controls/OnlineMapsTileSetControl.cs:892)
OnlineMaps:CheckBufferComplete() (at Assets/Vendors/Infinity Code/Online maps/Scripts/OnlineMaps.cs:774)
OnlineMaps:LateUpdate() (at Assets/Vendors/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1093)

Map setup:
* Provider: Google
* Target: Tileset
* Traffic: NO !

Map Tile Set Control Setup:
* Tile material: Sprites-Default

Can you help me ? (A fix for my setup or a fix in OnlineMapsTileSetControl:UpdateMapSubMesh)

Re: [Solved] Material doesn't have a texture property '_TrafficTex'

Hello.

You use a shader that does not support Traffic Texture.

Solutions:
1. Change the shader in your material to «Tileset» or «TilesetCutout».
2. Update Online Maps through built-in update to the latest beta version. This problem has already fixed.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: [Solved] Material doesn't have a texture property '_TrafficTex'

I don't know why the first solution don't works (Perhaps sprite material), but the second solution works.

Thx.