Online Unity c# code tester

Hey, my PC just broke and I’m writing some codes on a journal… but I wanna test them, to see if they’re working without any error. There’s any way I can do that using any online program? I don’t need to really see the results, I just need to see if the codes presents any errors so I can work to solve them…
Ty for any answers

1 Like

Google search for: online code editor c#

Gave me tonnes of useful pages.

C# does run on a virtual machine, so maybe. If it’s unity specific then you will probably not find anything.

Looks like https://ideone.com/ can do C#.

I did cloud build for a while in this exact situation.

1 Like

I think OP wants to be able to test if Unity code is working apart from C# syntax.

1 Like

I know this thread hasn’t been updated in a while but it is one of the top results that comes up when searching for Unity and Editor. Steego points to the right website to accomplish this but to be able to access UnityEngine library you will need to type UnityEngine under where it says NuGet Package.

Also be aware for example if you have:

using System;
using UnityEngine;

And you would like to use Random.Range you will get an error from the complier because it isn’t smart enough to know if you would like to use System.Random or UnityEngine.Random. You will need to type it as UnityEngine.Random.Range( , ) to be able to access that functionality.

I hope this helps anyone else that was searching for a solution to be able to code on the go like me.

4 Likes

Thank you so much steego and Sandtigerwolf! I oftentimes want to work on some code concepts while on the go when I do not have Unity installed on whatever device I have on me. This solution is exactly what I was looking for. I just want to add onto this saying that “Project Type” just can’t be “script”, otherwise “NuGet Package” doesn’t appear as an option.
I also suggest the package “Unity3D.UnityEngine” because it has more content like using UnityEngine.SceneManangement;
Again, thank you both so much!

2 Likes