public void ReadFromString(ref uint index, ref string[] nodeParams)
        {
#if UNITY_2019_3_OR_NEWER
            Enum.TryParse <InlineSamplerFilteringMode>(nodeParams[index++], out m_filterMode);
            Enum.TryParse <InlineSamplerWrapCoordinates>(nodeParams[index++], out m_mainWrapMode.Coordinates);

            int count = 0;
            int.TryParse(nodeParams[index++], out count);
            for (int i = 0; i < count; i++)
            {
                InlineSamplerWrapOptions option = new InlineSamplerWrapOptions();

                Enum.TryParse <InlineSamplerWrapMode>(nodeParams[index++], out option.WrapMode);
                Enum.TryParse <InlineSamplerWrapCoordinates>(nodeParams[index++], out option.Coordinates);

                m_additionalWrapOptions.Add(option);
            }
#else
            m_filterMode = (InlineSamplerFilteringMode)Enum.Parse(typeof(InlineSamplerFilteringMode), nodeParams[index++]);
            m_mainWrapMode.Coordinates = (InlineSamplerWrapCoordinates)Enum.Parse(typeof(InlineSamplerWrapCoordinates), nodeParams[index++]);

            int count = 0;
            int.TryParse(nodeParams[index++], out count);
            for (int i = 0; i < count; i++)
            {
                InlineSamplerWrapOptions option = new InlineSamplerWrapOptions();

                option.WrapMode    = ( InlineSamplerWrapMode)Enum.Parse(typeof(InlineSamplerWrapMode), nodeParams[index++]);
                option.Coordinates = ( InlineSamplerWrapCoordinates)Enum.Parse(typeof(InlineSamplerWrapCoordinates), nodeParams[index++]);

                m_additionalWrapOptions.Add(option);
            }
#endif
        }
 public void Destroy()
 {
     m_mainWrapMode = null;
     m_additionalWrapOptions.Clear();
     m_additionalWrapOptions = null;
 }