Search Unity

How To Detach Face through Code

Discussion in 'World Building' started by Berserker44, Apr 29, 2020.

  1. Berserker44

    Berserker44

    Joined:
    Sep 1, 2013
    Posts:
    29
    Hello,

    I am trying to detach a face(s) from a mesh using probuilder via code. I understand I can do this Detach Face function via the editor while in facemode, but I need to do this at run time. I tried to look at the documentation but can't find it anywhere. I also would like to the transform to be at the center of the face(s) and not of the detached parent.

    Any help would be greatly appreciated
     
  2. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    552