Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
1/6
Do you want to enhance your codebase and reduce your workload by incorporating calculations into template classes? You can bypass C# limitations thanks to Generic Arithmetic!
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2021.3.31f1
Compatible
Compatible
Compatible
Description

[Website] [Documentation] [Discord]



Easy Usage


Instantiate a new Computable or utilize static classes to perform any arithmetic operations or comparisons with generic parameters.


Generic Arithmetic does not require any additional setup, it just works!



Complete and Reliable


The tool handle all C# operators and functions flawlessly in the editor and at runtime, including in no assembly reload mode.


You can use it with any type: system primitives, unity primitives, custom classes or structs, nullables, etc.



High performances


Generic Arithmetic can make use of the Dynamic Language Runtime to apply operations, but its default behavior is even more efficient.


By employing reflection and Linq.Expressions, the tool compiles optimized code at runtime!


This is highly performant, your players won’t notice any difference compared to non-generic code, even in hot paths!



Extendable API


To work with IL2CPP, get close to perfect performances, manually resolve operator ambiguities or add extra arithmetic capabilities to a type, all you have to do is inherit from dedicated classes!


These additions will be automatically integrated into the tool’s logic, ensuring smooth usability.



Seamless User Experience


You can configure the tool effortlessly by editing a configuration asset.


The package includes full sources (50+ scripts).


A unit test window is included, ensuring 100% effectiveness and allowing you to safely make custom changes to the scripts if you want to.



Documentation and Help


The documentation is clear and complete.


The demo is a benchmark showcasing all usage of the tool.


Contacting support via email guarantees a response within a day or less, and there is a public Discord community for additional assistance.



Regular Updates


This tool will receive updates to fix bugs and introduce new features.

You can check version changelogs here.


If you enjoy Generic Arithmetic, please consider leaving a review. Your feedback helps improve it!


Technical details

Compatible with all operating systems and target platforms, IL2CPP requires (a little) extra work to support custom types.


Tested on version 2021.3 and later.

Generic Arithmetic - C# Template Extension

(not enough ratings)
10 users have favourite this asset
(10)
$9.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
4.3 MB
Latest version
1.1.0
Latest release date
Jan 2, 2024
Original Unity version
2021.3.31
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR
$9.99