Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to access texture scale and offset of particle strip

Discussion in 'Visual Effect Graph' started by Qriva, Jul 24, 2023.

  1. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,108
    Particle strip has different UV Modes, one of them is Scale And Bias which exposes UV Scale and UV Bias parameters. However when custom shader is used, UV mode is still there and exposes the same kind of properties:
    upload_2023-7-24_16-44-45.png
    How to access them in custom shader? I tried texture transform or _uvScale or similar things, but nothing works. Or perhaps this is UI bug and UV mode should not be available at all?
     
  2. OrsonFavrel

    OrsonFavrel

    Unity Technologies

    Joined:
    Jul 25, 2022
    Posts:
    128
    Morning, I will check with the team, but I think that those UV modes shouldn't be exposed. Those modes also exist for Quads, and they're not exposed when overriding with a custom Shader Graph:
    upload_2023-7-25_11-42-45.png

    So, I'm sure that you're already aware, but you could keep it to Uv Mode: Default, and Build some UV Scaling / Offset exposed properties in your Shader Graph.
    upload_2023-7-25_11-44-25.png
    upload_2023-7-25_11-44-56.png Unity_aHBBu86qW1.gif

    I'll come back later if I got more information to share related to those UV modes. Great day to you.
     
  3. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,108
    Yeah, actually that would not make sense to be exposed as there are other options like flipbook, so it's just inspector bug.