Exemple #1
0
 private static void UpdateTextMeshProDefines()
 {
     if (TextMeshProIsPresent())
     {
         DefinesHelper.AddSymbol("PLAYMAKER_TMPRO");
     }
     else
     {
         DefinesHelper.RemoveSymbol("PLAYMAKER_TMPRO");
     }
 }
Exemple #2
0
        private static void UpdatePipelineDefines()
        {
            var pipeline = GetPipeline();

            if (pipeline == PipelineType.UniversalPipeline)
            {
                DefinesHelper.AddSymbol("PLAYMAKER_URP");
            }
            else
            {
                DefinesHelper.RemoveSymbol("PLAYMAKER_URP");
            }
            if (pipeline == PipelineType.HDPipeline)
            {
                DefinesHelper.AddSymbol("PLAYMAKER_HDRP");
            }
            else
            {
                DefinesHelper.RemoveSymbol("PLAYMAKER_HDRP");
            }
        }