Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by hljfdsa2009 · Mar 23, 2016 at 12:59 PM · animationwindow

How to expand animation event window.

alt textHow can I change this window?

animationeventwindow.png (24.0 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Bunny83 · Mar 24, 2016 at 01:55 PM

It's not possible to modify or replace that editor window with a custom one. That editor window class is called "AnimationEventPopup" and is an internal type. It is hardcoded into the AnimationWindow code itself. They open that specific window as popup. So there's no way with the built-in methods to somehow replace / extend the functionality of that window.

What functionality do you miss? An AnimationEvent holds only a limited amount of data.

As said there's no way inside of Unity to change the behaviour of that window. If it's really important there is theoretically a way. Though this is more a "hack" than a solution:

  • Create a backup of the UnityEditor.dll

  • Create a new version of the "AnimationEventPopup" editor window and compile it to a seperate dll

  • Use ildasm to decompile your own dll to IL code

  • Use ildasm to decompile the UnityEditor.dll to IL

  • Find the AnimationEventPopup class in both IL texts

  • Replace the original editor window code with your modified version.

  • Use ilasm to recompile the UnityEditor.dll

  • replace the old dll with your new version.

Note: This is most likely against the eula of Unity. So you can't publish or even sell such a "hack". Of course it can (potentially) lead to other problems as well. It's not even guaranteed that the pure recompile doesn't already break it (hence the backup ^^).

Another way would be to use the cecil library to kind of automate the replacement of the class.

Your last option is to post a feature request and wait for a future version of Unity that might has this feature implemented. However it's unlikely that will happen. They implement features that most users need / want. Though if you think it's important enough you can file a feature request. If you do, make sure you post a link here in a comment so other people can vote for it.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hljfdsa2009 · Mar 25, 2016 at 03:33 AM 0
Share

Thanks a lot for your thorough answer. I am a novice for Unity , programmer as well. So if I use your solution, it seems I will meet more trouble than now.

Tanks again :)

avatar image
0

Answer by Abhiroop-Tandon · Mar 23, 2016 at 01:00 PM

Shift+Space

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hljfdsa2009 · Mar 24, 2016 at 05:05 AM 0
Share

I mean I need some API just like "OnInspectorGUI()" to change the content in this Window

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

"New Animation"-window doesn't open like it's supposed to 0 Answers

Hotkey to play animation 1 Answer

Advanced Animation Editor for Unity Animations (.anim)? 1 Answer

Is "Animations" stat in Rendering Statistics Window only an incremental value? 0 Answers

How can I change my animation window layout? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges