mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 22:39:39 -05:00
prefab は GameObject から得る
This commit is contained in:
@@ -231,7 +231,7 @@ namespace UniHumanoid
|
||||
static bool s_legFold;
|
||||
static bool s_armFold;
|
||||
static bool s_fingerFold;
|
||||
static string GetDialogDir(UnityEngine.Object obj)
|
||||
static string GetDialogDir(GameObject obj)
|
||||
{
|
||||
var prefab = PrefabUtility.GetCorrespondingObjectFromSource(obj);
|
||||
if (prefab == null)
|
||||
@@ -385,7 +385,7 @@ namespace UniHumanoid
|
||||
{
|
||||
var path = EditorUtility.SaveFilePanel(
|
||||
"Save avatar",
|
||||
GetDialogDir(m_target),
|
||||
GetDialogDir(m_target.gameObject),
|
||||
string.Format("{0}.avatar.asset", serializedObject.targetObject.name),
|
||||
"asset");
|
||||
if (TryGetAssetPath(path, out string unityPath))
|
||||
|
||||
Reference in New Issue
Block a user