Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.
/ Inspector-Graph Public archive

Simple tool for drawing a graph in the inspector.

License

Notifications You must be signed in to change notification settings

potokaalex/Inspector-Graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

titleBanner

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.