mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-23 02:55:07 -05:00
glTF_VRM_Material.Parse
This commit is contained in:
@@ -76,7 +76,12 @@ namespace VRM
|
||||
|
||||
public static List<glTF_VRM_Material> Parse(string src)
|
||||
{
|
||||
var json = UniJSON.JsonParser.Parse(src)["extensions"]["VRM"]["materialProperties"];
|
||||
var json = JsonParser.Parse(src)["extensions"]["VRM"]["materialProperties"];
|
||||
return Parse(json);
|
||||
}
|
||||
|
||||
public static List<glTF_VRM_Material> Parse(JsonNode json)
|
||||
{
|
||||
var materials = json.DeserializeList<glTF_VRM_Material>();
|
||||
var jsonItems = json.ArrayItems.ToArray();
|
||||
for (int i = 0; i < materials.Count; ++i)
|
||||
|
||||
2
UniGLTF
2
UniGLTF
Submodule UniGLTF updated: fb2fa4f1b6...3a3ddbbb20
Reference in New Issue
Block a user