diff --git a/Scripts/Format/Editor/VRMImporterMenu.cs b/Scripts/Format/Editor/VRMImporterMenu.cs index 1731f7339..fff051aaa 100644 --- a/Scripts/Format/Editor/VRMImporterMenu.cs +++ b/Scripts/Format/Editor/VRMImporterMenu.cs @@ -49,7 +49,7 @@ namespace VRM static void Import(string readPath, UnityPath prefabPath) { - var bytes = File.ReadAllBytes(readPath); + //var bytes = File.ReadAllBytes(readPath); var context = new VRMImporterContext(UnityPath.FromFullpath(readPath)); context.ParseGlb(File.ReadAllBytes(readPath)); context.SaveTexturesAsPng(prefabPath); diff --git a/Scripts/Format/VRMExporSettings.cs b/Scripts/Format/VRMExporSettings.cs index 681fc3dbe..21202ae60 100644 --- a/Scripts/Format/VRMExporSettings.cs +++ b/Scripts/Format/VRMExporSettings.cs @@ -149,6 +149,7 @@ namespace VRM } } +#pragma warning disable 0618 { // meta(obsolete) var src = go.GetComponent(); @@ -157,6 +158,8 @@ namespace VRM src.CopyTo(root); } } +#pragma warning restore 0618 + { // meta var src = go.GetComponent(); diff --git a/Scripts/Format/VRMExporter.cs b/Scripts/Format/VRMExporter.cs index 020d91117..a79c5fde5 100644 --- a/Scripts/Format/VRMExporter.cs +++ b/Scripts/Format/VRMExporter.cs @@ -102,6 +102,7 @@ namespace VRM x => gltf.extensions.VRM.secondaryAnimation.boneGroups.Add(x) ); +#pragma warning disable 0618 // meta(obsolete) { var meta = exporter.Copy.GetComponent(); @@ -119,6 +120,8 @@ namespace VRM gltf.extensions.VRM.meta.reference = meta.Reference; } } +#pragma warning restore 0618 + // meta { var _meta = exporter.Copy.GetComponent();