Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
6
Question by LukaKotar · Oct 14, 2014 at 04:49 AM · animationcurveoninspectorgui

Edit AnimationCurve from the inspector view? (Custom inspector)

I would like to edit an AnimationCurve property in the inspector view (rather than in a separate window), to make viewing and editing the curve more convenient. Something like seen in the AudioSource component:

alt text

I would only be editing a single curve, and I don't need the vertical line indicating the current point along the curve. EditorGUILayout.CurveField() did not give the expected result, and I can't find any other function for displaying the curves. I don't know how to approach this, so I hope someone can point me in the right direction.

Thanks in advance!

screenshot 2014-10-14 05.26.37.png (13.8 kB)
Comment
Add comment · Show 1
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 alexanderameye · Oct 20, 2016 at 03:28 PM 0
Share

Hello, have you found a solution for this? this is exactly what I need too :)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by MisterKidX · Sep 02, 2019 at 06:18 AM

Might be a little late, but for anyone googling this...

What you are looking for is the CurveEditor class. Unfortunately, it is internal to the Unity Editor and not exposed to user created editor scripts. You would have to implement one on your own :(

Comment
Add comment · Show 2 · 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 iuridosanjos · May 13 at 05:56 AM 0
Share

Thanks a lot for sharing this. I was looking for that information. Do you know if now (2022) there's any solution for this? Guess not. :(

avatar image MisterKidX · May 13 at 10:10 AM 0
Share

@iuridosanjos glad you found it useful :) I don't know if there's a contemporary solution and I don't recall seeing one in the new UI Toolkit. You could try (and probably succeed) using reflection to utilize the CurveEditor class in editors.

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

31 People are following this question.

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

Related Questions

Elevator to loop (Animation) 1 Answer

Modifying an entire animation with a single animation curve? 1 Answer

How to convert cubic Bezier curve into AnimationCurve 3 Answers

How can I set my Animation Curve's Tangents to Flat in script? 0 Answers

Time.deltaTime Too Variable 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