public void ParseInerVariSets(List<ShaderInerVariModel> model) { if (m_jobjData != null) { JArray rootArray = m_jobjData ["variner_sets"] as JArray; for (int i = 0; i < rootArray.Count; i++) { JToken val = rootArray[i]; { ShaderInerVariModel iner = new ShaderInerVariModel (); iner.name = (string)val["name"]; iner.file = (string)val ["file"]; JToken desc = val ["variables"]; iner.variables.Add ((string)desc ["desc"]); model.Add (iner); } } } }
public void ParseInerVariSets(List <ShaderInerVariModel> model) { if (m_jobjData != null) { JArray rootArray = m_jobjData ["variner_sets"] as JArray; for (int i = 0; i < rootArray.Count; i++) { JToken val = rootArray[i]; { ShaderInerVariModel iner = new ShaderInerVariModel(); iner.name = (string)val["name"]; iner.file = (string)val ["file"]; JToken desc = val ["variables"]; iner.variables.Add((string)desc ["desc"]); model.Add(iner); } } } }