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)); }
public static void CopyScale() { Vector3 pos = Selection.activeTransform.localScale; EditorUtils.CopyToClipboard(string.Format("{0},{1},{2}", pos.x, pos.y, pos.z)); }
public static void GetObjecNames() { var go = Selection.GetFiltered(typeof(Object), SelectionMode.TopLevel); EditorUtils.CopyToClipboard((go.Select(item => item.name).Join())); }
public static void GetGameObjectsName() { var go = Selection.GetFiltered(typeof(GameObject), SelectionMode.Editable); EditorUtils.CopyToClipboard(go.Select(item => ((GameObject)item).name).Join()); }
public static void GetObjectPaths() { var go = Selection.GetFiltered(typeof(Object), SelectionMode.TopLevel); EditorUtils.CopyToClipboard((go.Select(item => AssetDatabase.GetAssetPath(item)).Join())); }