Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/potokaalex/inspector-graph
Simple tool for drawing a graph in the inspector.
https://github.com/potokaalex/inspector-graph
chart csharp function graphics tool unity unity-scripts
Last synced: 7 days ago
JSON representation
Simple tool for drawing a graph in the inspector.
- Host: GitHub
- URL: https://github.com/potokaalex/inspector-graph
- Owner: potokaalex
- License: mit
- Archived: true
- Created: 2023-04-03T14:21:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-21T06:53:56.000Z (5 months ago)
- Last Synced: 2024-09-26T23:22:27.761Z (7 days ago)
- Topics: chart, csharp, function, graphics, tool, unity, unity-scripts
- Language: C#
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
![titleBanner](https://user-images.githubusercontent.com/98838657/235350873-bf6dd0cb-db0e-4948-9ada-9298ce67884c.png)
## Introduction
Inspector Graph is a tool for drawing a mathematical function as a property in the inspector.
This tool is open source.## Requirements
- Unity 2021.2 and up.## User manual
To use this in your project, you have to download the repository and place it anywhere in the "Assets" folder.
Then, in any Monobehaviour script, connect the "InspectorGraph" namespace and inherit from "IFunction".
Don't forget to define the "GetFunctionValue" method in which you should specify your mathematical function.
Then define the "Graph" field. You may not initialize it, but it must be public or marked with the "[SerializeField]" attribute.
The place where the graph is displayed depends on the location of the "Graph" field.## License
See [here](LICENSE).