Search Unity

Probuilder: get list of distinct indices

Discussion in 'World Building' started by unity_KfnOgS-621-Ykw, Dec 17, 2019.

  1. unity_KfnOgS-621-Ykw

    unity_KfnOgS-621-Ykw

    Joined:
    Dec 17, 2019
    Posts:
    1
    Hello guys,

    I need help getting a list of distinct indices in Probuilder. I have saved the faces I want to apply planar projection to into an array, and now I need to get a list of distinct indices. I see that the ProbuilderMesh class has only count indices method, how can i get distincs indices?

    I have tried the code freom this thread;
    https://forum.unity.com/threads/probuilder-scripting-autounwrap-several-faces-at-one.750548/

    But I don't see a getdistinctindices method... :/


    Any help woud be appreaciated,

    Best regards,

    Svetlana