Search Unity

  1. Click here to receive a gift with your purchase of Unity Pro or Unity Enterprise.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

ProBuilder Manipulate ProBuilder UV via script.

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

  1. porchman

    porchman

    Joined:
    Oct 29, 2020
    Posts:
    2
    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:
    2
    kaarrrllll likes this.
unityunity