예제 #1
0
        public static void CopyPositionAndLocalEulerAngles()
        {
            Vector3 pos   = Selection.activeTransform.localPosition;
            Vector3 angle = Selection.activeTransform.localEulerAngles;

            EditorUtils.CopyToClipboard(string.Format("{0},{1},{2};{3},{4},{5}", pos.x, pos.y, pos.z, angle.x, angle.y, angle.z));
        }
예제 #2
0
        public static void CopyScale()
        {
            Vector3 pos = Selection.activeTransform.localScale;

            EditorUtils.CopyToClipboard(string.Format("{0},{1},{2}", pos.x, pos.y, pos.z));
        }
예제 #3
0
        public static void GetObjecNames()
        {
            var go = Selection.GetFiltered(typeof(Object), SelectionMode.TopLevel);

            EditorUtils.CopyToClipboard((go.Select(item => item.name).Join()));
        }
예제 #4
0
        public static void GetGameObjectsName()
        {
            var go = Selection.GetFiltered(typeof(GameObject), SelectionMode.Editable);

            EditorUtils.CopyToClipboard(go.Select(item => ((GameObject)item).name).Join());
        }
예제 #5
0
        public static void GetObjectPaths()
        {
            var go = Selection.GetFiltered(typeof(Object), SelectionMode.TopLevel);

            EditorUtils.CopyToClipboard((go.Select(item => AssetDatabase.GetAssetPath(item)).Join()));
        }