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
0
Question by Ash-Blue · Dec 27, 2014 at 12:37 PM · inspectorshurikengraphcurveequation

Unity inspector graph for exponential values

For my game I'd like to put my experience system on an exponential graph similar to games like Skyrim and Final Fantasy http://www.uesp.net/wiki/File:Skill_XP_per_Skill_Level_Skyrim.png In Unity there are several built in inspector tools that already perform this functionality for the Shuriken Particle System and Animator. Is it possible to use something like the built in Shuriken inspector graphs to build a simple graph like the one below for a single ability?

alt text

800px-skill_xp_per_skill_level_skyrim.png (99.7 kB)
Comment
Add comment · Show 2
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 Ash-Blue · Dec 27, 2014 at 01:01 PM 1
Share

It looks like using AnimationCurve and calling AnimationCurve.Evaluate(xAxisVal) gets what I want. Not 100% sure if this is correct since the old animation system is technically deprecated.

avatar image Fornoreason1000 · Dec 27, 2014 at 01:09 PM 1
Share

yes you can use that animation curve, even though the old animation is not used they kept the curve feature... i used it in my RPG project, pretty helpful in representing character/enemy stats.

this is something you develop late in the game as you need to test various parts of the game to get it right. also read this http://gamedev.stackexchange.com/questions/14309/how-to-develop-rpg-damage-formulas

helped me develop some formula for combat too.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by RafaMiranda · Nov 14, 2018 at 02:47 AM

Question is old but, just in case someone else gets here, the answer is yes: check for AnimationCurve. The code bellow should get you started on editing and using the curve values. Ideally, derive your class from ScriptableObject instead of Monobehaviour, if you know how to handle scriptable objects.

 using UnityEngine;
 public class ExperienceCurves : Monobehaviour
 {
      AnimationCurve standard;
      AnimationCurve alchemy;
      // and so on...
 }


Comment
Add comment · 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

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

28 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

Related Questions

Get value from a cruve like in AnimationCurve? 1 Answer

Repurposing the inspector graph module 2 Answers

Looking for a simple graph maker in Unity 0 Answers

How to draw graph(line graph , spline graph) in unity using. 0 Answers

Graph/function in editor 1 Answer


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