Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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).