Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 7a59f9a

Browse files
committed
Update info about startup script -noci
1 parent 9b42eef commit 7a59f9a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ The inspector is used to see detailed information on objects of any type and man
9191
### C# Console
9292

9393
* The C# Console uses the `Mono.CSharp.Evaluator` to define temporary classes or run immediate REPL code.
94+
* You can execute a script automatically on startup by naming it `startup.cs` and placing it in the `UnityExplorer\Scripts\` folder (this folder will be created where you placed the DLL file).
9495
* See the "Help" dropdown in the C# console menu for more detailed information.
9596

9697
### Mouse-Inspect

src/UI/CSConsole/ConsoleController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,9 @@ public static void HelpSelected(int index)
608608
internal const string STARTUP_TEXT = @"<color=#5d8556>// Welcome to the UnityExplorer C# Console!
609609
610610
// It is recommended to use the Log panel (or a console log window) while using this tool.
611-
// Use the Help dropdown to see detailed examples of how to use the console.</color>";
611+
// Use the Help dropdown to see detailed examples of how to use the console.
612+
613+
// To execute a script automatically on startup, put the script at 'UnityExplorer\Scripts\startup.cs'</color>";
612614

613615
internal const string HELP_USINGS = @"// You can add a using directive to any namespace, but you must compile for it to take effect.
614616
// It will remain in effect until you Reset the console.

0 commit comments

Comments
 (0)