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.

Question Custom SubGraph default parameter

Discussion in 'Shader Graph' started by alkaitagi, Jan 15, 2020.

  1. alkaitagi

    alkaitagi

    Joined:
    Dec 8, 2016
    Posts:
    85
    I have created a subgraph that, among other ones, takes a Vector2 as a parameter meant for UV input. But quite often that parameter is left assigned to a UV0 node that I create. Is there a way to make the subgraph's parameter by default to be assigned to a UV0 the way this is done with SameplTexture2D or TilingAndOffset nodes?
     
  2. alkaitagi

    alkaitagi

    Joined:
    Dec 8, 2016
    Posts:
    85
    This is what I have now: upload_2020-1-15_10-47-37.png

    And this is what I would like to have:
    upload_2020-1-15_10-47-53.png
     
  3. alkaitagi

    alkaitagi

    Joined:
    Dec 8, 2016
    Posts:
    85
    Found out it is called Port Binding but still did not get how to apply it.
     
  4. alexandral_unity

    alexandral_unity

    Unity Technologies

    Joined:
    Jun 18, 2018
    Posts:
    162
    This is not currently supported but it's a feature request we know about and want to work on in the future.
     
    Garrafote and alkaitagi like this.
  5. Garrafote

    Garrafote

    Joined:
    Jun 13, 2013
    Posts:
    48
    +1 for this request!

    It'd be pretty cool to be able to mark Vector2 inputs as a UV channel by default
     
  6. Gekigengar

    Gekigengar

    Joined:
    Jan 20, 2013
    Posts:
    677
    Last edited: Oct 11, 2022