How increase object size on lightmap in 5.6

How to do it in unity 5.6?

have a look at the mesh renderer, the setting was moved there (‘scale in lightmap’).

2 Likes

I’m inconsiderate. Thanks a lot.

One of the issues am having is that mesh renderer has not updated to the new one. How come?

Nice one.An undocumented change by Unity.

Undocumented indeed, this page still has old info : Unity - Manual: The Lighting window and the linked draft doesn’t mention it either.

But at the very least it seems like they’re working on updating the docs.

For some reason (using 5.6) scaleInLightmap is not visible as an option under Mesh Renderer.

I had to go into the .prefab and manually change “m_ScaleInLightmap: 1” to “m_ScaleInLightmap: 0”

Hey!
I’m the dev responsible for this upgrade and hopefully I can help you.

If looks like you have winded up in the debug version of the inspector. 3274183--253128--Screen Shot 2017-11-02 at 13.58.42.png

If you have this one selected, we only generate and show some stuff, but non of the custom UI I had made is being shown. So just select “Normal” here and you should be okay :slight_smile: If this doesn’t work, there might be an issue with custom scripts. Try remove all the scripts and see if that fixes it.

Ping me if it doesn’t work!

If you’re not seeing these properties in a (static) MeshRenderer, make sure your project doesn’t have any old custom MeshRenderer inspectors lying around i.e. [CustomEditor(typeof(MeshRender))]. We had the ‘missing lightmap scale’ problem (after a BIG jump from Unity 5.4 to Unity 2017.2). It seems like DrawDefaultInspector and base.OnInspectorGUI don’t actually draw the ‘real’ inspector for MeshRenderer properly. We fixed it by deleting our MeshRenderer editor. We couldn’t see any easy workaround to enable us to still use a custom MeshRenderer editor - so maybe this is a bug for someone at Unity to log, cause I haven’t reported it anywhere else apart from right here :wink:

Hope this helps someone.
Ta

Andrew