Search Unity

Question KeywordEnum and defines

Discussion in 'Shader Graph' started by MODev, Jun 18, 2019.

  1. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    Hi,
    I'm trying to port one of my shaders to be usable in shader graph (more for HDRP/LWRP use) but I hit the wall:
    I'm not able to add KeywordEnum (int) property (https://docs.unity3d.com/ScriptReference/MaterialPropertyDrawer.html) and add custom defines. Well I can solve my problem by preparing shader with Amplify Editor but this shouldn't be the only solution, should it? Is there any workaround for this?