Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Changing a probuilder-made object's face color during runtime

Discussion in 'World Building' started by arthur740212, Jun 3, 2020.

  1. arthur740212

    arthur740212

    Joined:
    Dec 10, 2018
    Posts:
    1
    Hi I am trying to make a Megaminx, the dodecahedron shaped rubiks cube, using probuilder.

    For now, I can color each face with the vertex color in probuilder, but I wish I can change the face color in runtime by code, but can't find a way to do that, wonder if anyone has any ideas.

    Additionly, I wonder how the probuilder face coloring is handled as well. I have learned that each vertex has its color, so if we want a sharp edge with distinct colors, there should be two vertices on the same position. Does probuilder also do that or is it using another method.
     
  2. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    552