- Home /
How to open the Animation window from an editor script ?
Hi !
I'm currently working on a tool (based on editor's scripting) which will permit to edit FBX animations. Actually all is working fine, but to be more "user friendly", i need to automatically open the animation window.
Did someone know how to display the animation window from script ?
Thanks !
Comment
Best Answer
Answer by komodor · Jan 24, 2014 at 11:42 AM
here you go:
if (GUILayout.Button("open animation window"))
{
EditorApplication.ExecuteMenuItem("Window/Animation");
}
thanks for that question it's nice to know it :D
actually i found it here http://wiki.unity3d.com/index.php/EditorWindowCycler
Ohhhhh O_O
I really love you dude. Really.
In the documentation, i was looking for something like "AnimationWindow", "OpenWindow" or similar things...
And this function can be very usefull for a lot of cases !
Thanks !