SkillAgentSearch skills...

InspectorCalculator

Allows calculation inside Unity3D inspector fields

Install / Use

/learn @JoshuaGlazer/InspectorCalculator
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

InspectorCalculator

Allows calculation inside Unity3D inspector fields

Ever wished you could do simple math in an inspector field?
Ever wished that scale of 2.42 could easily be multiplied up by 1.5?
Ever wished that object were nudged over by 10 * sin( pi / 3 ) ?
Well now all of this is possible and more!

Simply select any text field in an inspector and push ctrl-shift-e ( command-shift-e on mac ) or select Evaluate from the Edit menu.

The value in the field will be copied into a new Calculator Window.
You can then type a simple mathematical expression into the window and press return.
The window will close and the result will be placed back in your original field, just like magic!
Well, Magic driven by lots and lots of FLOPS.<br>

Currently supports these functions, with any others easily wrappable sin, cos, tan, asin, acos, atan, pow, exp, log, ln, +, *, -, /, % and more

To install- just copy the contents of the Unity4/Assets folder into your project's Assets folder

More info at http://www.joshuaglazer.com/blog/inspector-calculator-evaluating-math-inside-unity3d-inspector-fields/

Released under the MIT License:

The MIT License (MIT)

Copyright (c) 2013 Joshua Glazer, Naked Sky Entertainment, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Related Skills

View on GitHub
GitHub Stars4
CategoryProduct
Updated11y ago
Forks3

Languages

C#

Security Score

55/100

Audited on Dec 10, 2014

No findings