Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Andoid (Quest) build problem: 'MeshRenderer' does not contain a definition for 'scaleInLightmap'

Discussion in 'Visual Scripting' started by dlobser, Dec 28, 2023.

  1. dlobser

    dlobser

    Joined:
    Jul 12, 2016
    Posts:
    2
    I'm building an empty scene.

    Unity 2021.3.31
    VS version 1.9.1

    Error:

    Assets\Unity.VisualScripting.Generated\VisualScripting.Core\AotStubs.cs(13218,28): error CS1061: 'MeshRenderer' does not contain a definition for 'scaleInLightmap' and no accessible extension method 'scaleInLightmap' accepting a first argument of type 'MeshRenderer' could be found (are you missing a using directive or an assembly reference?)

    So I pop into AotStubs.cs and comment out those lines, but VS rebuilds that file each time I build so I can't just delete them. Google tells me nobody else is having this problem.
     
  2. dlobser

    dlobser

    Joined:
    Jul 12, 2016
    Posts:
    2
    I rebuilt the project from scratch and the error went away :/

    would be curious if there's a fix though.
     
  3. MrTaffy

    MrTaffy

    Joined:
    Dec 12, 2022
    Posts:
    16
    I have this EXACT problem!
     
    Last edited: May 8, 2024