Current sales News My Tracked Assets Login
Generic Arithmetic - C# Template Extension preview
Unity

Generic Arithmetic - C# Template Extension

By Juste Tools

FREE

Price history

Recorded standalone sale prices and the latest available store price, in USD. Historical dots use the sale start date and its recorded offer price. Prices can change during a sale; this is not a daily price log. Bundle prices and upcoming offers are excluded. History covers up to the 100 most recent recorded offers.

Lowest recorded standalone price in this history: FREE. The latest store price is FREE, matching the lowest recorded price shown here.

Recorded prices for Generic Arithmetic - C# Template Extension 1 price observations from Nov 5, 2026 to Nov 5, 2026. Lowest recorded price FREE. Exact dates and prices are listed below. $0.00 $0.50 $1.00 Nov 5, 2026: FREE. Latest store price Nov 5, 2026
Each dot is a recorded sale price or the latest store check. Prices between observations are unknown.
View 1 recorded price
Recorded standalone asset prices in USD
Sale start / price checkPriceObservation
FREELatest store price

About Generic Arithmetic - C# Template Extension

  • Tools, Systems & Learning > Development Tools & Automation
Arithmetic and comparison operations in generic C# classes. Works with any numeric or operator-enabled type, with no additional setup required.

Built-in computators cover all Unity numeric and vector types; a Roslyn source generator adds AOT-safe support for custom types.

Features

Full operator coverage: all C# arithmetic (+, -, *, /, %), bitwise (&, |, ^), unary, shift, and comparison operators, plus boolean evaluation (operator true / operator false)
Any numeric or operator-enabled type: built-in computators cover int, float, double, long, Vector2, Vector3, and all other Unity numeric and vector types; custom types are supported via source generator or manual computators
Two usage styles: wrap values in Computable to use standard C# operator syntax inline, or call Calculate and Evaluate static methods directly for explicit result-type control and cross-type operations
Source generator: the [GenerateComputators] assembly-level attribute generates AOT-safe computators at compile time; the recommended approach for IL2CPP builds
Manual computators: extend BinaryCalculator, UnaryCalculator, BinaryEvaluator, or UnaryEvaluator for full control over how each operation is implemented; discovered automatically at startup, no registration required
Try methods: non-throwing variants of every Calculate and Evaluate method return false instead of throwing when an operation is not supported for the given types
Configurable fallback: choose Throw, Dynamic, or Expression behavior for types without a registered computator, set per-project in the Configuration inspector
Editor tooling: bulk tests window to run all registered computators against a predefined value set and review color-coded results; creator tool to generate manual computator scripts from a window

Content

Computable struct: lightweight value wrapper exposing all operators directly; implicit conversions to/from T and cross-type From / To casting
Calculate and Evaluate static classes: method-call API for binary and unary operations with explicit result types; each has a nested Try class for non-throwing access
Computator system: built-in computators for all Unity numeric and vector types; [GenerateComputators] Roslyn source generator; four abstract base classes (BinaryCalculator, UnaryCalculator, BinaryEvaluator, UnaryEvaluator) for manual implementation
Configuration inspector: per-project fallback strategy and view of all registered built-in and user computators
Tests: NUnit test suite and a bulk tests window covering all computator type combinations
Demo: a benchmark scene comparing non-generic, naive generic, Computable, and Calculate approaches

Requirements

Unity 6.0 or later

Unity price last checked .

Prices and availability may change.