Search Unity

Question Submesh mask: problem with bitwise mask and selection of one mesh only

Discussion in 'Visual Effect Graph' started by Shrubokrant, Jun 16, 2020.

  1. Shrubokrant

    Shrubokrant

    Joined:
    Oct 2, 2016
    Posts:
    80
    Hi!

    I am having an issue with the Output Particle Lit Mesh: I have a mesh with 8 submeshes, and I would like to select only one of them, randomly chosen per particle.

    It works when I do a bitwise Xor, and input manually the value B ( 0 2 4 8 6 16 32 or 64 ), but it does not work when I try to connect the probability sampling node to it with the corresponding value: any idea why?

    upload_2020-6-16_1-7-56.png