增加移动端界面暂存
This commit is contained in:
1 parent
31e8e3bebb
commit
3c9d489c76
56 files changed
+59321
-2517
No files matched your search
@@ -0,0 +1,33 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public class CEditor : Editor
|
||||
{
|
||||
|
||||
[MenuItem("GameObject/CopyHierarchyPath", false, 11)]
|
||||
public static void CopyHierarchy()
|
||||
{
|
||||
GameObject go = Selection.activeGameObject;
|
||||
string path = go.GetRPath();
|
||||
path = path.Replace("Canvas (Environment)/", "");
|
||||
GUIUtility.systemCopyBuffer = path;
|
||||
}
|
||||
}
|
||||
public static class Ex
|
||||
{
|
||||
public static string GetRPath(this GameObject go)
|
||||
{
|
||||
GameObject current = go;
|
||||
string path = current.name;
|
||||
|
||||
while (null != current.transform.parent)
|
||||
{
|
||||
current = current.transform.parent.gameObject;
|
||||
path = current.name + "/" + path;
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c50a36b17c46c9b4396813a8b0ec2e88
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,9 +1,8 @@
|
||||
|
||||
#if UNITY_IOS && UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
|
||||
#if UNITY_IOS && UNITY_EDITOR
|
||||
using UnityEditor.Callbacks;
|
||||
using UnityEditor.iOS.Xcode;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user