mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-01 15:22:53 -05:00
Save blendShape assets to files
This commit is contained in:
@@ -79,6 +79,21 @@ namespace VRM
|
||||
|
||||
yield return Meta;
|
||||
}
|
||||
|
||||
protected override UnityPath GetAssetPath(UnityPath prefabPath, UnityEngine.Object o)
|
||||
{
|
||||
if (o is BlendShapeAvatar
|
||||
|| o is BlendShapeClip)
|
||||
{
|
||||
var dir = prefabPath.GetAssetFolder(".BlendShapes");
|
||||
var assetPath = dir.Child(o.name.EscapeFilePath() + ".asset");
|
||||
return assetPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
return base.GetAssetPath(prefabPath, o);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
2
UniGLTF
2
UniGLTF
Submodule UniGLTF updated: 86f006b8f0...d0eedb344e
Reference in New Issue
Block a user