mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-16 22:19:31 +07:00
some ping objects
This commit is contained in:
@@ -80,17 +80,25 @@ namespace FTEditor.Editors {
|
|||||||
//
|
//
|
||||||
|
|
||||||
void CreateAllClipsPrefabs() {
|
void CreateAllClipsPrefabs() {
|
||||||
Selection.objects = _clips
|
var objects = _clips
|
||||||
.Select (p => CreateClipPrefab(p))
|
.Select (p => CreateClipPrefab(p))
|
||||||
.Where (p => !!p)
|
.Where (p => !!p)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
Selection.objects = objects;
|
||||||
|
foreach ( var obj in objects ) {
|
||||||
|
EditorGUIUtility.PingObject(obj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateAllClipsOnScene() {
|
void CreateAllClipsOnScene() {
|
||||||
Selection.objects = _clips
|
var objects = _clips
|
||||||
.Select (p => CreateClipOnScene(p))
|
.Select (p => CreateClipOnScene(p))
|
||||||
.Where (p => !!p)
|
.Where (p => !!p)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
Selection.objects = objects;
|
||||||
|
foreach ( var obj in objects ) {
|
||||||
|
EditorGUIUtility.PingObject(obj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -265,6 +265,7 @@ namespace FTEditor {
|
|||||||
static void Tools_FlashTools_OpenSettings() {
|
static void Tools_FlashTools_OpenSettings() {
|
||||||
var settings_holder = SwfEditorUtils.GetSettingsHolder();
|
var settings_holder = SwfEditorUtils.GetSettingsHolder();
|
||||||
Selection.objects = new Object[]{settings_holder};
|
Selection.objects = new Object[]{settings_holder};
|
||||||
|
EditorGUIUtility.PingObject(settings_holder);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MenuItem("Tools/FlashTools/Reimport all swf files")]
|
[MenuItem("Tools/FlashTools/Reimport all swf files")]
|
||||||
|
|||||||
Reference in New Issue
Block a user