Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question How to access LodRange of a child in order to modify via code? Seems to work via editor at runtime.

Discussion in 'Graphics for ECS' started by muntes, Jul 20, 2023.

  1. muntes

    muntes

    Joined:
    Nov 24, 2021
    Posts:
    24
    Hi, all,

    I have modified the MeshLODGroupComponent value of the parent. However, all instances which were previously added are not actualizing. How could I actualize them?

    In the Unity Editor, I can manually adjust the LodRange, and everything works as I would like at runtime.

    Do I need to regenerate the entities?
    upload_2023-7-20_18-42-48.png
    upload_2023-7-20_18-41-26.png
    upload_2023-7-20_18-42-10.png

    Thanks