Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How increase object size on lightmap in 5.6

Discussion in 'Global Illumination' started by langaler, Apr 1, 2017.

  1. langaler

    langaler

    Joined:
    Dec 10, 2014
    Posts:
    4
    How to do it in unity 5.6?
     

    Attached Files:

  2. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    926
    have a look at the mesh renderer, the setting was moved there ('scale in lightmap').
     
    kB11 and Aldrick like this.
  3. langaler

    langaler

    Joined:
    Dec 10, 2014
    Posts:
    4
    I'm inconsiderate. Thanks a lot.
     
  4. AleksanderN

    AleksanderN

    Joined:
    Jan 9, 2017
    Posts:
    6
    One of the issues am having is that mesh renderer has not updated to the new one. How come?
     
  5. Aldrick

    Aldrick

    Joined:
    Feb 19, 2014
    Posts:
    64
    Nice one.An undocumented change by Unity.
     
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
  7. BearHugMark

    BearHugMark

    Joined:
    Feb 21, 2016
    Posts:
    20
    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"
     
  8. JenniferNordwall

    JenniferNordwall

    Unity Technologies

    Joined:
    Sep 19, 2016
    Posts:
    160
    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. 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 :) 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!
     
    Last edited: Nov 2, 2017
  9. AndrewJones_

    AndrewJones_

    Joined:
    Nov 28, 2017
    Posts:
    3
    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 ;-)

    Hope this helps someone.
    Ta

    Andrew