![]()
It would be much better if we could change the function via a configuration option of the graph. #Unity catlight coding math basics code#While changing code during play mode can be convenient, it is not a handy way to switch back and forth between multiple functions. It will switch to animating the new function, without being aware that something changed. Not everything survives a hot reload, but our graph does. ![]() Execution will be paused, the current game state saved, then the scripts are compiled again, and finally the game state is reloaded and play resumes. You can even do this while the Unity editor is in play mode. You can change the code and the function will change along with it. It is also possible to show other mathematical functions. Function LibraryĪfter finishing the previous tutorial we have a point graph that shows an animated sine wave while in play mode. Combining a few waves to create a complex surface. This tutorial is made with Unity 2020.3.6f1. This time we'll make it possible to display multiple and more complex functions. It is a continuation of the Building a Graph tutorial, so we won't start a new project. #Unity catlight coding math basics series#This is the third tutorial in a series about learning the basics of working with Unity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |