mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 23:18:04 -05:00
pull JsonSchema. debug
This commit is contained in:
parent
bf9a506d65
commit
b8334ae645
|
|
@ -187,7 +187,12 @@ namespace UniGLTF.JsonSchema
|
|||
// source.properties = new Dictionary<string, JsonSchemaSource>();
|
||||
foreach (var prop in kv.Value.ObjectItems())
|
||||
{
|
||||
var propJsonPath = $"{jsonPath}.{prop.Key.GetString()}";
|
||||
var key = prop.Key.GetString();
|
||||
if (key == "scale")
|
||||
{
|
||||
var a = 0;
|
||||
}
|
||||
var propJsonPath = $"{jsonPath}.{key}";
|
||||
var propSchema = Parse(prop.Value, propJsonPath);
|
||||
if (propSchema is null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,7 +20,18 @@ namespace UniVRM10
|
|||
public static class Menu
|
||||
{
|
||||
[MenuItem(UniVRM10.VRMVersion.MENU + "/Generate from JsonSchema")]
|
||||
public static void Main()
|
||||
public static void Generate()
|
||||
{
|
||||
Run(false);
|
||||
}
|
||||
|
||||
[MenuItem(UniVRM10.VRMVersion.MENU + "/Generate from JsonSchema(debug)")]
|
||||
public static void Parse()
|
||||
{
|
||||
Run(true);
|
||||
}
|
||||
|
||||
static void Run(bool debug)
|
||||
{
|
||||
var projectRoot = new DirectoryInfo(Path.GetFullPath(Path.Combine(Application.dataPath, "../")));
|
||||
|
||||
|
|
@ -50,7 +61,11 @@ namespace UniVRM10
|
|||
var extensionSchemaPath = new FileInfo(Path.Combine(projectRoot.FullName, args[i]));
|
||||
var parser = new UniGLTF.JsonSchema.JsonSchemaParser(gltf.Directory, extensionSchemaPath.Directory);
|
||||
var extensionSchema = parser.Load(extensionSchemaPath, "");
|
||||
// extensionSchema.Dump();
|
||||
if (debug)
|
||||
{
|
||||
extensionSchema.Dump();
|
||||
continue;
|
||||
}
|
||||
|
||||
var dst = new DirectoryInfo(Path.Combine(projectRoot.FullName, args[i + 1]));
|
||||
Debug.Log(dst);
|
||||
|
|
|
|||
|
|
@ -1,12 +1,21 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"com.unity.ads": "2.0.8",
|
||||
"com.unity.analytics": "3.2.3",
|
||||
"com.unity.collab-proxy": "1.2.15",
|
||||
"com.unity.package-manager-ui": "2.0.13",
|
||||
"com.unity.purchasing": "2.0.3",
|
||||
"com.unity.textmeshpro": "1.4.1",
|
||||
"com.unity.2d.sprite": "1.0.0",
|
||||
"com.unity.2d.tilemap": "1.0.0",
|
||||
"com.unity.ads": "3.6.1",
|
||||
"com.unity.analytics": "3.3.5",
|
||||
"com.unity.collab-proxy": "1.2.16",
|
||||
"com.unity.ide.rider": "1.1.4",
|
||||
"com.unity.ide.vscode": "1.2.3",
|
||||
"com.unity.multiplayer-hlapi": "1.0.8",
|
||||
"com.unity.purchasing": "3.0.1",
|
||||
"com.unity.test-framework": "1.1.24",
|
||||
"com.unity.textmeshpro": "2.1.4",
|
||||
"com.unity.timeline": "1.2.18",
|
||||
"com.unity.ugui": "1.0.0",
|
||||
"com.unity.xr.legacyinputhelpers": "2.1.7",
|
||||
"com.unity.modules.ai": "1.0.0",
|
||||
"com.unity.modules.androidjni": "1.0.0",
|
||||
"com.unity.modules.animation": "1.0.0",
|
||||
"com.unity.modules.assetbundle": "1.0.0",
|
||||
"com.unity.modules.audio": "1.0.0",
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
m_EditorVersion: 2018.4.27f1
|
||||
m_EditorVersion: 2019.4.24f1
|
||||
m_EditorVersionWithRevision: 2019.4.24f1 (5da6f0345e82)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 068254bdf1ca0fb8473487073c82164cb97432d0
|
||||
Subproject commit e14461555138092921b8b25dddeda12acf2bf069
|
||||
Loading…
Reference in New Issue
Block a user