public MyJson.IJsonNode Parser(Component com, NeedList list) { MeshFilter t = com as MeshFilter; var json = new MyJson.JsonNode_Object(); var name = AssetMgr.SaveMesh(t.sharedMesh, System.IO.Path.Combine(Application.streamingAssetsPath, "mesh")); list.AddDependMesh(name); json["mesh"] = new MyJson.JsonNode_ValueString(name); return json; }
public MyJson.IJsonNode Parser(Component com, NeedList list) { MeshFilter t = com as MeshFilter; var json = new MyJson.JsonNode_Object(); var name = AssetMgr.SaveMesh(t.sharedMesh, System.IO.Path.Combine(Application.streamingAssetsPath, "mesh")); list.AddDependMesh(name); json["mesh"] = new MyJson.JsonNode_ValueString(name); return(json); }
public MyJson.IJsonNode Parser(Component com,NeedList list) { MeshCollider t = com as MeshCollider; var json = new MyJson.JsonNode_Object(); json["isTrigger"] = new MyJson.JsonNode_ValueNumber(t.isTrigger); var name = AssetMgr.SaveMesh(t.sharedMesh, System.IO.Path.Combine(Application.streamingAssetsPath, "mesh")); list.AddDependMesh(name); json.SetDictValue("mesh", name); json.SetDictValue("convex", t.convex); json.SetDictValue("smoothSphereCollisions", t.smoothSphereCollisions); return json; }
public MyJson.IJsonNode Parser(Component com, NeedList list) { MeshCollider t = com as MeshCollider; var json = new MyJson.JsonNode_Object(); json["isTrigger"] = new MyJson.JsonNode_ValueNumber(t.isTrigger); var name = AssetMgr.SaveMesh(t.sharedMesh, System.IO.Path.Combine(Application.streamingAssetsPath, "mesh")); list.AddDependMesh(name); json.SetDictValue("mesh", name); json.SetDictValue("convex", t.convex); json.SetDictValue("smoothSphereCollisions", t.smoothSphereCollisions); return(json); }