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

Question User controlled LOD scale

Discussion in 'Scripting' started by TOES, Nov 10, 2022.

  1. TOES

    TOES

    Joined:
    Jun 23, 2017
    Posts:
    134
    I want to let the player scale the LOD object size so that he can minimize ugly LOD popping based on the power of his system. But, I could not find a way to do this programmatically during runtime.

    Basically I would like to scale the "ObjectSize" parameter in all LODgroups, based on the users setting.

    How to set this parameter in c#?
     
  2. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,887
    Change
    QualitySettings.lodBias
    . Default is 2.0f from memory.
     
    TOES likes this.
  3. TOES

    TOES

    Joined:
    Jun 23, 2017
    Posts:
    134
    Unfortunately it is only working for culling, but not for LOD