A somewhat simpler approach is to ask the mods to write C # code, to load the script into the game and compile it.
Since modders can use the existing Unity API, many people are already familiar with it and provide lots of documentation and tutorials.
It launches and runs very fast, exposes a very large feature set, supports code that needs very little API development or needs to be provided.
The published feature set is very large, almost everything you can do with C #. Modules with such access can essentially complete all the games that they desire, as explained in the link answer. Once you let them run arbitrary code, I do not know what to fix for their particular function or limit what they can change.
This means that installing remodeling written by strangers requires a high degree of trust. As spyware and other malicious content may be coded, your game may be used as an attack path for undoubted players. It is not necessarily what you want
As mentioned in the link answers, all platforms that Unity can target do not support runtime compilation, and some platforms require additional plugins.
As the link says, a more powerful solution is to make your own virtual machine - using for example. Bytecode mode - You can run scripts loaded as data at run time and strictly control that they are allowed.
You can make it like the Kerbal Space Program: Enable your game to load AssetBundles at runtime, where and how to asset assets in the bundle to appear in the game I will tell you.
Then, get Unity Personal Edition and tell modder to use it to build mod as an asset bundle containing the appropriate configuration file. In order to connect correctly to the rest of the game, you need to open several interfaces and provide them to modder as "mod SDK" asset pack.
The advantage of this method is that your modder can do whatever Unity can do. This is a lot of good things. Unfortunately, the disadvantage of this approach is that modder can do whatever Unity can do. There are lots of malicious content. So you need to educate your players not to download the remodel they found.
If you want to make a safer remodeling, you need to do more work. A good way to properly use sandbox mods is to use a scripting language that allows you to selectively publish certain features of the game. You can write it yourself, but designing a good programming language and writing an interpreter for it is far more difficult than it seems. A better solution is to use an existing script engine. The C # script engine can be used for almost all famous scripting languages.
Is not the answer you are looking for? Please see other questions tagged with unity c # script remodeling or ask your own question.
Unity allows users to create games in 2D and 3D, and the engine provides plugin Unity editor, C # main script API for game itself and drag and drop function. Before C # became the main programming language used in engines, it supported Boo deleted in Unity 5 release and JavaScript version of Unity 2017. It was discontinued after the release of Unity 2017.1 in August 2017. Support C #
C # is widely used to create games using the Unity game engine currently the most popular game engine. More than one-third of top games are made using Unity, and the active users of games created with the Unity engine are about 7.7 million. Unity is also used in VR, 90% of Samsung Gear and 53% of Oculus Rift VR game are being developed using Unity. In C #, there are many easy-to-learn functions. It is a relatively easy-to-read high-level language, and many of the most complicated tasks are abstracted so programmers do not have to worry about them. For example, memory management is removed from user's responsibility and handled by the. NET garbage collection scheme.
Unity is the ultimate game development platform. We combine developers and technology assets to create the world's most popular digital games. Just in the third quarter of 2016, Unity downloaded 5 billion games. Today, games made with Unity are in 5 billion unique mobile devices. Applications and game developers can insert Kin's "5 Minute SDK" (software development kit) into their apps and game code and monetize Kin's work in just minutes. This "plug and play" approach allows almost all developers to access Kin Ecosystem and its benefits without spending time and research developing cryptographic currencies. Do you release the encryption currency to the general public