Search Unity

ProBuilder UV API not accessible.

Discussion in 'World Building' started by Mockarutan, Mar 13, 2021.

  1. Mockarutan

    Mockarutan

    Joined:
    May 22, 2011
    Posts:
    159
    I'm working on procedural level generation and using ProBuilder as the tool to manipulate the meshes.
    The more I use it the more I discover feature and functions not accessible outside the assembly. Like the auto UV solution that you can use in the UV editor to fix the UV mapping (Convert to Auto -> Reset UVs), that whole feature-set is inside an internal class in the ProBuilder assembly, Why?

    I will probably move ProBuilder into me Package folder and modify it to get access to everything I need. I just think it's really unhelpful to make seemingly random functions 'internal'.

    First, does anybody know a way to access the auto UV solution outside the ProBuilder assembly?

    And second, what would be the reson to hide it? I mean sure, some functions might be very specific to internal problems, but shouldn't that be private to the object needing it then? It really seems unnecessary to me.