Easy Asset Search

C# Eval() - A Powerful Expression Parser and Executor

A simple and easy-to-use C# expression parser and executor for Unity, allowing for scriptable logic, math evaluation, and dynamic code execution.
C# Eval() - A Powerful Expression Parser and Executor Asset Image A simple and easy-to-use C# expression parser and executor for Unity, allowing for scriptable logic, math evaluation, and dynamic code execution.

* This page contains affiliate links, meaning we may earn a small commission if you purchase something through them, at no extra cost.
$14.99
Category:
ToolsVisual-scripting
Developer:
GameDevWare
Price:
$14.99
Rating:
(7 reviews)
Favorites:
160
Supported Unity Versions:
3.4.0 or higher
Current Version:
2.3.0
Download Size:
198.61 KB
Last Update:
Mar 27, 2023
Description:
The C# Eval() package is a comprehensive expression parser and executor for Unity. It provides a simple and easy-to-use API for evaluating C# expressions at runtime, making it ideal for scriptable logic, math evaluation, and dynamic code execution. The package includes the source code of the parser, compiler, and examples, and is based on the System.Linq.Expressions framework.

The package supports a wide range of features, including arithmetic, bitwise, and logical operations, as well as method calls, property and field access, and more. It also supports expressions with parentheses, checked and unchecked scopes, and aliases for built-in types.

The package is compatible with Unity 3 to 2018, and can be used on PC, Mac, Linux, and mobile platforms. It also supports IL2CPP and can be used in the Unity Editor.

Some of the key features of the package include:

* Arithmetic operations
* Bitwise operations
* Logical operations
* Method calls
* Property and field access
* Indexers
* Casting and conversion
* Is operator
* As operator
* TypeOf operator
* Default operator
* Expression grouping with parentheses
* Checked and unchecked scopes
* Aliases for built-in types
* Power operator
* Lambda expressions
* Support for "true", "false", and "null" literals

The package is a powerful tool for any Unity developer looking to add dynamic logic to their game or application.
Technical Details:
The package is based on the System.Linq.Expressions framework and supports any non-lambda expression from System.Linq.Expressions v.3.5. It also supports System.Func<> and System.Action<> lambda expressions, with some limitations due to the static code compiler.
Continue »

Similar Packages