LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

ExpressionEvaluator

class in UnityEditor

Description

Evaluates simple math expressions; supports int / float and operators: + - * / % ^ ( ).

Static Methods

EvaluateEvaluates a math expression and returns the result as a float or int.