mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-28 22:04:56 -05:00
Fixed warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -149,6 +149,7 @@ namespace VRM
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable 0618
|
||||
{
|
||||
// meta(obsolete)
|
||||
var src = go.GetComponent<VRMMetaInformation>();
|
||||
@@ -157,6 +158,8 @@ namespace VRM
|
||||
src.CopyTo(root);
|
||||
}
|
||||
}
|
||||
#pragma warning restore 0618
|
||||
|
||||
{
|
||||
// meta
|
||||
var src = go.GetComponent<VRMMeta>();
|
||||
|
||||
@@ -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<VRMMetaInformation>();
|
||||
@@ -119,6 +120,8 @@ namespace VRM
|
||||
gltf.extensions.VRM.meta.reference = meta.Reference;
|
||||
}
|
||||
}
|
||||
#pragma warning restore 0618
|
||||
|
||||
// meta
|
||||
{
|
||||
var _meta = exporter.Copy.GetComponent<VRMMeta>();
|
||||
|
||||
Reference in New Issue
Block a user