Search Unity

[Released] Dynamic C# - Runtime C# Scripting

Discussion in 'Assets and Asset Store' started by scottyboy805, Feb 8, 2017.

  1. scottyboy805

    scottyboy805

    Joined:
    Apr 10, 2013
    Posts:
    1,193
    Dynamic C# version 1.1.6 has been submitted to the asset store. This version includes:
    • Updated minimum required version to 2018.1 for better compatibility with newer releases.
    • Fixed an issue in newer versions of Unity where importing some packages could cause plugin conflicts.
     
  2. Qmaks2

    Qmaks2

    Joined:
    Jun 2, 2012
    Posts:
    25
    Does it support Il2CPP?
     
  3. scottyboy805

    scottyboy805

    Joined:
    Apr 10, 2013
    Posts:
    1,193
    Hi,
    IL2CPP is not supported unfortunately.
    We are currently working on an add-on asset to support IL2CPP but it is some way of being production ready. It will also likley only release as an add on for our other asset 'Roslyn C#' when the time comes, not Dynamic C#. That could change in the future though.
     
  4. Marcos-Elias

    Marcos-Elias

    Joined:
    Nov 1, 2014
    Posts:
    159
    Does it work with more recent Unity versions?
    I used it in the past without any problems. Now on Unity 2020.3 my loaded script throws this error:

    [CS246]: The type or namespace name `MonoBehaviour' could not be found. Are you missing an assembly reference? in <Unknown> at [5, 25]

    The script content is just this simple:

    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4.  
    5. public class Mondego15: MonoBehaviour
    6. {
    7.     void Start()
    8.     {
    9.         Debug.Log("Hello xD");
    10.     }
    11. }
     
  5. scottyboy805

    scottyboy805

    Joined:
    Apr 10, 2013
    Posts:
    1,193
    Hi, Yes the asset should work just fine in newer Unity versions. Only thing is that the Unity assemblies have changed in newer versions (Unity have split them out into modules), so you may need to change the references you are using in the settings. For example: To access things like `MonoBehaviour` you now need to add a reference to `UnityEngine.CoreModule.dll`instead of just `UnityEngine.dll`. There are a lot of other modules too that you may need to add for things like animation, input, physics etc.

    Also just for your information, this asset has now been superseded buy Roslyn C# - Runtime Compiler but will still work just fine. Note that since you own Dynamic C#, you will be entitled to a reduced upgrade price if you did want to update.

    Let me know if there is anything else
     
    Marcos-Elias likes this.