rje / unishell

Interactive C# Shell for the Unity3d editor
82 stars 7 forks source link

No response to command line entries #8

Open Ghopper21 opened 11 years ago

Ghopper21 commented 11 years ago

I can install the package and open the interactive shell without apparent problem. But when I type anything into the command line and hit enter, it just disappears and nothing else happens. This is on a Mac with the latest version of Unity (free).

rje commented 11 years ago

Thanks for the report -- I'm running on pro, but I'll install free on another computer and see if I can reproduce your issue.

Cheers, Ryan

rje commented 11 years ago

My work machine is running the 4.0 beta, but I made some fixes earlier today to assembly loading that may have resolved this issue. Could you try the latest and let me know if it's still broken for you?

Ghopper21 commented 11 years ago

Thanks -- getting a different problem now. Load Unity 3.5 (free). Create new project. Import the 0.3 package. Click Window > Interactive Shell. Shell window comes up. Enter e.g. 1 + 1; Get the following runtime error:

NullReferenceException: Object reference not set to an instance of an object UnityEditor.EditorGUI.ObjectIconDropDown (Rect position, UnityEngine.Object[] targets, Boolean showLabelIcons, UnityEngine.Texture2D nullIcon, UnityEditor.SerializedProperty iconProperty) UnityEditor.MonoScriptImporterInspector.OnHeaderIconGUI (Rect iconRect) UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header) UnityEditor.Editor.OnHeaderGUI () UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty) UnityEditor.InspectorWindow.OnGUI () System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)

grimmwerks commented 9 years ago

Tried it myself - Unity5, Mac OSX 10.10.2 -- typing in the interactive window, no response, no printout, no errors.

omundy commented 3 years ago

Unity 2020.1 on Mac - no response, no printout, no errors, nothing

CuteWaterBeary commented 1 year ago

I got it to work. I used the updated files from BlueAmulet -> https://github.com/BlueAmulet/unishell/tree/master/Assets/Plugins/Unishell/Editor It's the 3 .cs files.

Then I used the Mono.CSharp.dll from the installation of Unity:

Screen Shot 2022-09-26 at 3 12 01 AM
CuteWaterBeary commented 1 year ago
Screen Shot 2022-09-26 at 3 21 58 AM