Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
1/1
NOTE:
You should no longer use this, but use the modified mono mcs.dll by Jakub Rak instead which is located here ->
https://github.com/aeroson/mcs-ICodeCompiler .
It is a lot easier to set up and use.

I will keep this package available for educational reasons though.

Basic example on how to use CS-Script ( http://www.csscript.net/ ) inside Unity.

With CS-Script you are able to compile and run C# scripts at runtime. This way you can ship new C# code after release without building a new version.
This is also a great start for adding mod support to your game.
See comments inside samplescripts for more info on how it works.

Note:
Compiling C# at runtime will NOT work on iOS as it is permitted by apple (AOT <-> JIT). The same is true for consoles. If you need a runtime script solution which will work on all platforms, you should use a Unity compatible LUA interpreter like http://www.moonsharp.org instead.

CS-Script for Unity

(11)
151 users have favourite this asset
(151)
FREE
License type
File size
551.6 KB
Latest version
CS-Script for Unity
Latest release date
Oct 24, 2016
Original Unity version
5.3.2 or higher
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