Search Unity

Manipulate ProBuilder UV via script.

Discussion in 'World Building' started by porchman, Nov 16, 2020.

  1. porchman

    porchman

    Joined:
    Oct 29, 2020
    Posts:
    6
    I'm struggling with using UnityEngine.ProBuilder to modify face UV on runtime; attemping to flip or rotate face UV's

    Following this thread, https://forum.unity.com/threads/scripting-with-probuilder-controlling-uvs.528724/

    public ProBuilderMesh mesh2;
    var face = mesh2.faces[0]
    face.uv.flipU = true;

    I can't assign to flipU, following cs1612 return type error and assigning value to a variable before assigning it to flipU is still throwing the same error.

    Any suggestions?
     
  2. porchman

    porchman

    Joined:
    Oct 29, 2020
    Posts:
    6
    kaarrrllll likes this.