public void ReadFromString(ref uint index, ref string[] nodeParams)
        {
            try
            {
                m_blendOpHelper.ReadFromString(ref index, ref nodeParams);
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
            try
            {
                m_cullModeHelper.ReadFromString(ref index, ref nodeParams);
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
            try
            {
                m_colorMaskHelper.ReadFromString(ref index, ref nodeParams);
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
            try
            {
                m_stencilBufferHelper.ReadFromString(ref index, ref nodeParams);
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
            try
            {
                m_depthOphelper.ReadFromString(ref index, ref nodeParams);
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
            try
            {
                m_tagsHelper.ReadFromString(ref index, ref nodeParams);
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
            try
            {
                m_shaderModelHelper.ReadFromString(ref index, ref nodeParams);
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }


            if (UIUtils.CurrentShaderVersion() < 15312)
            {
                try
                {
                    m_additionalDefines.ReadFromString(ref index, ref nodeParams);
                }
                catch (Exception e)
                {
                    Debug.LogException(e);
                }
                try
                {
                    m_additionalPragmas.ReadFromString(ref index, ref nodeParams);
                }
                catch (Exception e)
                {
                    Debug.LogException(e);
                }
                try
                {
                    m_additionalIncludes.ReadFromString(ref index, ref nodeParams);
                }
                catch (Exception e)
                {
                    Debug.LogException(e);
                }

                m_additionalDirectives.AddItems(AdditionalLineType.Include, m_additionalIncludes.ItemsList);
                m_additionalDirectives.AddItems(AdditionalLineType.Define, m_additionalDefines.ItemsList);
                m_additionalDirectives.AddItems(AdditionalLineType.Pragma, m_additionalPragmas.ItemsList);
            }
            else
            {
                try
                {
                    m_additionalDirectives.ReadFromString(ref index, ref nodeParams);
                }
                catch (Exception e)
                {
                    Debug.LogException(e);
                }
            }
        }
예제 #2
0
 public void ReadFromString(ref uint index, ref string[] nodeParams)
 {
     try
     {
         m_blendOpHelper.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_cullModeHelper.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_colorMaskHelper.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_stencilBufferHelper.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_depthOphelper.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_tagsHelper.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_shaderModelHelper.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_additionalDefines.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_additionalPragmas.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     try
     {
         m_additionalIncludes.ReadFromString(ref index, ref nodeParams);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
 }