├── .gitignore
├── .npmignore
├── .yamato
├── promotion.yml
└── upm-ci.yml
├── CHANGELOG.md
├── CHANGELOG.md.meta
├── CONTRIBUTING.md
├── CONTRIBUTING.md.meta
├── Documentation~
├── Images.meta
├── Images
│ ├── assembly_inspector.png
│ ├── clear_console_icon.png
│ ├── code_snippet_selection.png
│ ├── collapsed_object_inspection.png
│ ├── dictionary_collapsed.png
│ ├── expanded_object_inspection.png
│ ├── fully_expanded_object_inspection.png
│ ├── gameobject_inspector.png
│ ├── hide_assembly_inspector_icon.png
│ ├── multi_view_selection.png
│ ├── multiline_mode.png
│ ├── multiline_mode_icon.png
│ ├── namespace_list.png
│ ├── namespace_static_object_inspector.png
│ ├── namespace_type_list.png
│ ├── quickview_icon_blue.png
│ ├── run_code_icon.png
│ ├── simple_dictionary_fullview_inspector.png
│ ├── simple_dictionary_inspector.png
│ └── single_line_input_example.png
└── com.unity.immediate-window.md
├── Editor.meta
├── Editor
├── AssemblyInfo.cs
├── AssemblyInfo.cs.meta
├── Resources.meta
├── Resources
│ ├── Styles.meta
│ ├── Styles
│ │ ├── Main_Dark.scss
│ │ ├── Main_Dark.scss.meta
│ │ ├── Main_Dark.uss
│ │ ├── Main_Dark.uss.meta
│ │ ├── Main_Light.scss
│ │ ├── Main_Light.scss.meta
│ │ ├── Main_Light.uss
│ │ ├── Main_Light.uss.meta
│ │ ├── _common.scss
│ │ └── _common.scss.meta
│ ├── Templates.meta
│ └── Templates
│ │ ├── Alert.uxml
│ │ ├── Alert.uxml.meta
│ │ ├── Console.uxml
│ │ ├── Console.uxml.meta
│ │ ├── ConsoleOutput.uxml
│ │ ├── ConsoleOutput.uxml.meta
│ │ ├── ConsoleToolbar.uxml
│ │ ├── ConsoleToolbar.uxml.meta
│ │ ├── Context.uxml
│ │ ├── Context.uxml.meta
│ │ ├── ImmediateWindow.uxml
│ │ ├── ImmediateWindow.uxml.meta
│ │ ├── OutputItem.uxml
│ │ ├── OutputItem.uxml.meta
│ │ ├── UIElementsSchema.meta
│ │ └── UIElementsSchema
│ │ ├── UIElements.xsd
│ │ ├── UIElements.xsd.meta
│ │ ├── UnityEditor.Experimental.UIElements.xsd
│ │ ├── UnityEditor.Experimental.UIElements.xsd.meta
│ │ ├── UnityEditor.ImmediateWindow.UI.xsd
│ │ ├── UnityEditor.ImmediateWindow.UI.xsd.meta
│ │ ├── UnityEngine.Experimental.UIElements.xsd
│ │ └── UnityEngine.Experimental.UIElements.xsd.meta
├── Sources.meta
├── Sources
│ ├── Services.meta
│ ├── Services
│ │ ├── Analytics.meta
│ │ ├── Analytics
│ │ │ ├── ImmediateWindowAnalytics.cs
│ │ │ └── ImmediateWindowAnalytics.cs.meta
│ │ ├── Code.meta
│ │ ├── Code
│ │ │ ├── Evaluator.cs
│ │ │ ├── Evaluator.cs.meta
│ │ │ ├── Globals.cs
│ │ │ ├── Globals.cs.meta
│ │ │ ├── Inspector.cs
│ │ │ └── Inspector.cs.meta
│ │ ├── Common.meta
│ │ ├── Common
│ │ │ ├── Config.cs
│ │ │ ├── Config.cs.meta
│ │ │ ├── PropertyInfo.cs
│ │ │ ├── PropertyInfo.cs.meta
│ │ │ ├── PropertyUtils.cs
│ │ │ ├── PropertyUtils.cs.meta
│ │ │ ├── Resources.cs
│ │ │ ├── Resources.cs.meta
│ │ │ ├── UIUtils.cs
│ │ │ ├── UIUtils.cs.meta
│ │ │ ├── VisualElementExtensions.cs
│ │ │ └── VisualElementExtensions.cs.meta
│ │ ├── External.meta
│ │ ├── External
│ │ │ ├── ParsedAssemblyQualifiedName.cs
│ │ │ └── ParsedAssemblyQualifiedName.cs.meta
│ │ ├── QuickInspector.meta
│ │ ├── QuickInspector
│ │ │ ├── ATypeView.cs
│ │ │ ├── ATypeView.cs.meta
│ │ │ ├── ITypeView.cs
│ │ │ ├── ITypeView.cs.meta
│ │ │ ├── TypeViewFinder.cs
│ │ │ ├── TypeViewFinder.cs.meta
│ │ │ ├── ViewContext.cs
│ │ │ ├── ViewContext.cs.meta
│ │ │ ├── ViewMode.cs
│ │ │ └── ViewMode.cs.meta
│ │ ├── State.meta
│ │ └── State
│ │ │ ├── Command.cs
│ │ │ ├── Command.cs.meta
│ │ │ ├── History.cs
│ │ │ ├── History.cs.meta
│ │ │ ├── State.cs
│ │ │ └── State.cs.meta
│ ├── UI.meta
│ └── UI
│ │ ├── Common.meta
│ │ ├── Common
│ │ ├── Arrow.cs
│ │ ├── Arrow.cs.meta
│ │ ├── ArrowToggle.cs
│ │ ├── ArrowToggle.cs.meta
│ │ ├── Container.cs
│ │ ├── Container.cs.meta
│ │ ├── Expandable.cs
│ │ ├── Expandable.cs.meta
│ │ ├── ExtendedExpandable.cs
│ │ ├── ExtendedExpandable.cs.meta
│ │ ├── Span.cs
│ │ ├── Span.cs.meta
│ │ ├── Text.cs
│ │ └── Text.cs.meta
│ │ ├── QuickInspector.meta
│ │ ├── QuickInspector
│ │ ├── QuickInspector.cs
│ │ ├── QuickInspector.cs.meta
│ │ ├── TestObjects.meta
│ │ ├── TestObjects
│ │ │ ├── Objects.cs
│ │ │ └── Objects.cs.meta
│ │ ├── TypeInspector.cs
│ │ ├── TypeInspector.cs.meta
│ │ ├── TypeViews.meta
│ │ └── TypeViews
│ │ │ ├── ArrayType.cs
│ │ │ ├── ArrayType.cs.meta
│ │ │ ├── ComplexObjectType.cs
│ │ │ ├── ComplexObjectType.cs.meta
│ │ │ ├── DictionaryType.cs
│ │ │ ├── DictionaryType.cs.meta
│ │ │ ├── Libs.meta
│ │ │ ├── Libs
│ │ │ ├── CachedView.cs
│ │ │ ├── CachedView.cs.meta
│ │ │ ├── CollapsedArrayGroup.cs
│ │ │ ├── CollapsedArrayGroup.cs.meta
│ │ │ ├── CollapsedDictionaryGroup.cs
│ │ │ ├── CollapsedDictionaryGroup.cs.meta
│ │ │ ├── CollapsedPropertyGroup.cs
│ │ │ ├── CollapsedPropertyGroup.cs.meta
│ │ │ ├── ExpandableObject.cs
│ │ │ ├── ExpandableObject.cs.meta
│ │ │ ├── ExpandedArrayGroup.cs
│ │ │ ├── ExpandedArrayGroup.cs.meta
│ │ │ ├── ExpandedClassType.cs
│ │ │ ├── ExpandedClassType.cs.meta
│ │ │ ├── ExpandedDictionaryGroup.cs
│ │ │ ├── ExpandedDictionaryGroup.cs.meta
│ │ │ ├── ExpandedInterfaceGroup.cs
│ │ │ ├── ExpandedInterfaceGroup.cs.meta
│ │ │ ├── ExpandedMethodGroup.cs
│ │ │ ├── ExpandedMethodGroup.cs.meta
│ │ │ ├── ExpandedPropertyGroup.cs
│ │ │ ├── ExpandedPropertyGroup.cs.meta
│ │ │ ├── Interface.cs
│ │ │ ├── Interface.cs.meta
│ │ │ ├── Method.cs
│ │ │ ├── Method.cs.meta
│ │ │ ├── PropertyValueGroup.cs
│ │ │ ├── PropertyValueGroup.cs.meta
│ │ │ ├── ProperyLabel.cs
│ │ │ ├── ProperyLabel.cs.meta
│ │ │ ├── ProperyTypeLabel.cs
│ │ │ ├── ProperyTypeLabel.cs.meta
│ │ │ ├── TypeViewMenu.cs
│ │ │ ├── TypeViewMenu.cs.meta
│ │ │ ├── TypeViewQuickSwitch.cs
│ │ │ ├── TypeViewQuickSwitch.cs.meta
│ │ │ ├── TypeViewSelection.cs
│ │ │ └── TypeViewSelection.cs.meta
│ │ │ ├── NullType.cs
│ │ │ ├── NullType.cs.meta
│ │ │ ├── ObjectType.cs
│ │ │ ├── ObjectType.cs.meta
│ │ │ ├── StringType.cs
│ │ │ ├── StringType.cs.meta
│ │ │ ├── ValueType.cs
│ │ │ ├── ValueType.cs.meta
│ │ │ ├── Views.meta
│ │ │ └── Views
│ │ │ ├── ClassView.cs
│ │ │ ├── ClassView.cs.meta
│ │ │ ├── TypeNameView.cs
│ │ │ └── TypeNameView.cs.meta
│ │ ├── Window.meta
│ │ └── Window
│ │ ├── AssemblyInspector.cs
│ │ ├── AssemblyInspector.cs.meta
│ │ ├── Console.meta
│ │ ├── Console
│ │ ├── Console.cs
│ │ ├── Console.cs.meta
│ │ ├── ConsoleOutput.cs
│ │ ├── ConsoleOutput.cs.meta
│ │ ├── ConsoleToolbar.cs
│ │ ├── ConsoleToolbar.cs.meta
│ │ ├── OutputItem.cs
│ │ └── OutputItem.cs.meta
│ │ ├── Context.cs
│ │ ├── Context.cs.meta
│ │ ├── ContextInspector.cs
│ │ ├── ContextInspector.cs.meta
│ │ ├── ImmediateWindow.cs
│ │ ├── ImmediateWindow.cs.meta
│ │ ├── NamespaceInspector.cs
│ │ └── NamespaceInspector.cs.meta
├── Unity.ImmediateWindow.Editor.asmdef
└── Unity.ImmediateWindow.Editor.asmdef.meta
├── LICENSE.md
├── LICENSE.md.meta
├── README.md
├── README.md.meta
├── Tests.meta
├── Tests
├── Unity.ImmediateWindow.Tests.asmdef
├── Unity.ImmediateWindow.Tests.asmdef.meta
├── WindowTests.cs
└── WindowTests.cs.meta
├── Third Party Notices.md
├── Third Party Notices.md.meta
├── build.bat
├── build.bat.meta
├── build.sh
├── build.sh.meta
├── package.json
└── package.json.meta
/.gitignore:
--------------------------------------------------------------------------------
1 | .npmrc
2 | .vscode
3 | .idea
4 | !Documentation~
5 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | .npmrc
2 | .npmignore
3 | .gitignore
4 | QAReport.md
5 | QAReport.md.meta
6 | .vscode
7 | .idea
8 | .gitlab-ci.yml
9 |
--------------------------------------------------------------------------------
/.yamato/promotion.yml:
--------------------------------------------------------------------------------
1 | test_editors:
2 | - version: 2019.1
3 | test_platforms:
4 | - name: win
5 | type: Unity::VM
6 | image: package-ci/win10:stable
7 | flavor: m1.large
8 | ---
9 | {% for editor in test_editors %}
10 | {% for platform in test_platforms %}
11 | promotion_test_{{ platform.name }}_{{ editor.version }}:
12 | name : Promotion Test {{ editor.version }} on {{ platform.name }}
13 | agent:
14 | type: {{ platform.type }}
15 | image: {{ platform.image }}
16 | flavor: {{ platform.flavor}}
17 | variables:
18 | UPMCI_PROMOTION: 1
19 | commands:
20 | - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
21 | - upm-ci package test --unity-version {{ editor.version }}
22 | artifacts:
23 | logs:
24 | paths:
25 | - "upm-ci~/test-results/**/*"
26 | dependencies:
27 | - .yamato/upm-ci.yml#pack
28 | {% endfor %}
29 | {% endfor %}
30 |
31 | promotion_test_trigger:
32 | name: Promotion Tests Trigger
33 | agent:
34 | type: Unity::VM
35 | image: package-ci/win10:stable
36 | flavor: m1.large
37 | artifacts:
38 | logs:
39 | paths:
40 | - "upm-ci~/test-results/**/*"
41 | packages:
42 | paths:
43 | - "upm-ci~/packages/**/*"
44 | dependencies:
45 | {% for editor in test_editors %}
46 | {% for platform in test_platforms %}
47 | - .yamato/promotion.yml#promotion_test_{{platform.name}}_{{editor.version}}
48 | {% endfor %}
49 | {% endfor %}
50 |
51 | promote:
52 | name: Promote to Production
53 | agent:
54 | type: Unity::VM
55 | image: package-ci/win10:stable
56 | flavor: m1.large
57 | variables:
58 | UPMCI_PROMOTION: 1
59 | commands:
60 | - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
61 | - upm-ci package promote
62 | triggers:
63 | tags:
64 | only:
65 | - /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
66 | artifacts:
67 | artifacts:
68 | paths:
69 | - "upm-ci~/packages/*.tgz"
70 | dependencies:
71 | - .yamato/upm-ci.yml#pack
72 | {% for editor in test_editors %}
73 | {% for platform in test_platforms %}
74 | - .yamato/promotion.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
75 | {% endfor %}
76 | {% endfor %}
--------------------------------------------------------------------------------
/.yamato/upm-ci.yml:
--------------------------------------------------------------------------------
1 | test_editors:
2 | - version: 2019.2
3 | - version: trunk
4 | test_platforms:
5 | - name: win
6 | type: Unity::VM
7 | image: package-ci/win10:stable
8 | flavor: m1.large
9 | - name: mac
10 | type: Unity::VM::osx
11 | image: buildfarm/mac:stable
12 | flavor: m1.mac
13 | ---
14 | pack:
15 | name: Pack
16 | agent:
17 | type: Unity::VM
18 | image: package-ci/win10:stable
19 | flavor: m1.large
20 | commands:
21 | - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
22 | - upm-ci package pack
23 | artifacts:
24 | packages:
25 | paths:
26 | - "upm-ci~/**/*"
27 |
28 | {% for editor in test_editors %}
29 | {% for platform in test_platforms %}
30 | test_{{ platform.name }}_{{ editor.version }}:
31 | name : Test {{ editor.version }} on {{ platform.name }}
32 | agent:
33 | type: {{ platform.type }}
34 | image: {{ platform.image }}
35 | flavor: {{ platform.flavor}}
36 | commands:
37 | - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
38 | - upm-ci package test --unity-version {{ editor.version }}
39 | artifacts:
40 | logs:
41 | paths:
42 | - "upm-ci~/test-results/**/*"
43 | dependencies:
44 | - .yamato/upm-ci.yml#pack
45 | {% endfor %}
46 | {% endfor %}
47 |
48 | test_trigger:
49 | name: Tests Trigger
50 | agent:
51 | type: Unity::VM
52 | image: package-ci/win10:stable
53 | flavor: m1.large
54 | commands:
55 | - dir
56 | triggers:
57 | branches:
58 | only:
59 | - "/.*/"
60 | artifacts:
61 | logs:
62 | paths:
63 | - "upm-ci~/test-results/**/*"
64 | packages:
65 | paths:
66 | - "upm-ci~/packages/**/*"
67 | dependencies:
68 | - .yamato/upm-ci.yml#pack
69 | {% for editor in test_editors %}
70 | {% for platform in test_platforms %}
71 | - .yamato/upm-ci.yml#test_{{platform.name}}_{{editor.version}}
72 | {% endfor %}
73 | {% endfor %}
74 |
75 | publish:
76 | name: Publish to Internal Registry
77 | agent:
78 | type: Unity::VM
79 | image: package-ci/win10:stable
80 | flavor: m1.large
81 | commands:
82 | - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
83 | - upm-ci package publish
84 | triggers:
85 | tags:
86 | only:
87 | - /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
88 | artifacts:
89 | artifacts:
90 | paths:
91 | - "upm-ci~/packages/*.tgz"
92 | dependencies:
93 | - .yamato/upm-ci.yml#pack
94 | {% for editor in test_editors %}
95 | {% for platform in test_platforms %}
96 | - .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
97 | {% endfor %}
98 | {% endfor %}
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 | All notable changes to this package will be documented in this file.
3 |
4 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5 | and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6 |
7 | ## [1.1.0-preview.5] - 2019-07-23
8 | - Updated contribution guidelines
9 |
10 | ## [1.1.0-preview.3] - 2019-07-17
11 | - Added contribution guidelines
12 |
13 | ## [1.1.0-preview.1] - 2019-05-28
14 | - Fixed main camera issue
15 |
16 | ## [1.0.0-preview.5] - 2019-04-05
17 | - Changed documentation
18 |
19 | ## [1.0.0-preview.4] - 2019-04-05
20 | - Switch CI publishing to Yamato
21 |
22 | ## [1.0.0-preview.3] - 2018-12-11
23 | - Fixed CI for publishing
24 |
25 | ## [1.0.0-preview.2] - 2018-12-07
26 | - Fixed key up/down on console input
27 |
28 | ## [1.0.0-preview.1] - 2018-12-06
29 | - Update to support UIElement 2019.1
30 |
31 | ## [0.0.1-preview.4] - 2018-12-05
32 | ### This is the first release of the *Immediate Window*.
33 |
--------------------------------------------------------------------------------
/CHANGELOG.md.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3d9dc1812bac34a5bba275762ffb1cc3
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | ## If you are interested in contributing, here are some ground rules:
4 | * First share your plan with us before starting to avoid redundant or disruptive work
5 | * External contributors can use Github issues for that
6 | * Branch of master for hot fixes, or dev for other works
7 | * Please include the ticket ID in your commits (either Jira or Github issue)
8 |
9 | ## All contributions are subject to the [Unity Contribution Agreement(UCA)](https://unity3d.com/legal/licenses/Unity_Contribution_Agreement)
10 | By making a pull request, you are confirming agreement to the terms and conditions of the UCA, including that your Contributions are your original creation and that you have complete right and authority to make your Contributions.
11 |
12 | ## Once you have a change ready following these ground rules. Simply make a pull request
13 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a65755baa562043a1bab83e08694d947
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Documentation~/Images.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e761e6752d0fb4b7eb20e4800ed60f5f
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Documentation~/Images/assembly_inspector.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/assembly_inspector.png
--------------------------------------------------------------------------------
/Documentation~/Images/clear_console_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/clear_console_icon.png
--------------------------------------------------------------------------------
/Documentation~/Images/code_snippet_selection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/code_snippet_selection.png
--------------------------------------------------------------------------------
/Documentation~/Images/collapsed_object_inspection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/collapsed_object_inspection.png
--------------------------------------------------------------------------------
/Documentation~/Images/dictionary_collapsed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/dictionary_collapsed.png
--------------------------------------------------------------------------------
/Documentation~/Images/expanded_object_inspection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/expanded_object_inspection.png
--------------------------------------------------------------------------------
/Documentation~/Images/fully_expanded_object_inspection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/fully_expanded_object_inspection.png
--------------------------------------------------------------------------------
/Documentation~/Images/gameobject_inspector.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/gameobject_inspector.png
--------------------------------------------------------------------------------
/Documentation~/Images/hide_assembly_inspector_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/hide_assembly_inspector_icon.png
--------------------------------------------------------------------------------
/Documentation~/Images/multi_view_selection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/multi_view_selection.png
--------------------------------------------------------------------------------
/Documentation~/Images/multiline_mode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/multiline_mode.png
--------------------------------------------------------------------------------
/Documentation~/Images/multiline_mode_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/multiline_mode_icon.png
--------------------------------------------------------------------------------
/Documentation~/Images/namespace_list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/namespace_list.png
--------------------------------------------------------------------------------
/Documentation~/Images/namespace_static_object_inspector.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/namespace_static_object_inspector.png
--------------------------------------------------------------------------------
/Documentation~/Images/namespace_type_list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/namespace_type_list.png
--------------------------------------------------------------------------------
/Documentation~/Images/quickview_icon_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/quickview_icon_blue.png
--------------------------------------------------------------------------------
/Documentation~/Images/run_code_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/run_code_icon.png
--------------------------------------------------------------------------------
/Documentation~/Images/simple_dictionary_fullview_inspector.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/simple_dictionary_fullview_inspector.png
--------------------------------------------------------------------------------
/Documentation~/Images/simple_dictionary_inspector.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/simple_dictionary_inspector.png
--------------------------------------------------------------------------------
/Documentation~/Images/single_line_input_example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Unity-Technologies/com.unity.immediate-window/ef74cf894ef7bc505b0da58ba29ee3047246b32b/Documentation~/Images/single_line_input_example.png
--------------------------------------------------------------------------------
/Documentation~/com.unity.immediate-window.md:
--------------------------------------------------------------------------------
1 | # Immediate Window
2 |
3 | The immediate window is used to instantly evaluate C# code inside the Unity Editor.
4 |
5 | 
6 |
7 | ## Installation
8 |
9 | The window is accessible through the ```Window/Analysis/Immediate Window``` editor menu.
10 |
11 | ## Overview
12 |
13 | The immediate window lets you run code and inspect returned object and their properties. It's not a tool aim at developement but rather
14 | debug scenarios or editor API discovery.
15 |
16 | ## Usage
17 |
18 | ### Interface Overview
19 |
20 | #### Toolbar
21 |
22 | ###### Reset
23 |
24 | Resets the in-memory assembly state. If you had any variable or class created they will be cleared. Namespaces using will also be reset to default.
25 |
26 | ###### View Private
27 |
28 | View private members when inspecting objects.
29 |
30 | ######  Run Code
31 |
32 | Press this to run the current code. Alternatively, press `Return` when in single-line mode or `Command+Return` on Mac or `Ctrl+Return` on Windows in multiline mode to do the same.
33 |
34 | ######  Show/Hide Assembly Inspector Toggle
35 |
36 | Show/Hide the Assembly Inspector
37 |
38 | ######  Single/Multiline Mode Toggle
39 |
40 | Toggle between multiline/single line mode (see below for details).
41 |
42 | ######  Clear Console
43 |
44 | Clears the console of all output.
45 |
46 | #### Keyboard Shortcuts
47 |
48 | ##### Multiline Mode
49 |
50 | * Mac:`Command+Return` - Windows:`Ctrl+Return`: [Run Code](#runCodeHelp)
51 |
52 | ##### Single Line Mode
53 |
54 | * `Return`: [Run Code](#runCodeHelp)
55 | * `Keyboard Up Arrow` - Previous Command
56 | * `Keyboard Down Arrow` - Next Command
57 |
58 | ### Single Line Command
59 |
60 | You can use the single line input to type code and get it to evaluate instantly upon pressing `Return`.
61 |
62 | For example, if you type this code:
63 |
64 | 
65 |
66 | you will see this result in the inspector:
67 |
68 | 
69 |
70 | ### Object Inspection
71 |
72 | #### Basics
73 |
74 | You can use the object inspector to inspect an object and its properties. The object inspector will show the last object of any line of code. So for instance if you type: ```var a = 12; var b = 14```
75 | You will only see the `b` object in the console. Note that if you added a semicolon `;` at the end of the previous line, you will only see `null` in the console, which is somewhat counter-intuitive.
76 |
77 | Here is an example of an collapsed object inspector, which only shows a quick view of the object:
78 |
79 | 
80 |
81 | Clicking on the object will yield a more detailed view:
82 |
83 | 
84 |
85 | You can also click on the `methods` or, if available `interface` groups to view additional details:
86 |
87 | 
88 |
89 | #### Type views
90 |
91 | Some types, such as Lists and Dictionaries have specific views in order to simplify their inspection. For instance, viewing a dictionary will yield something like this:
92 |
93 | 
94 |
95 | Instead of having every property of the object, only the most relevant is show, in this case, the key/value pair. You can notice at the end of the line a blue icon 
96 | which, when clicked, will become grey and show the _full_ object view, like this:
97 |
98 | 
99 |
100 | In cases where there are _many_ views for a given type, you will see a dropdown like this which will let you select which view to use (in this case, the different views are `Object`, `Complex 1` and `Complex 2`):
101 |
102 | 
103 |
104 | You can also create your own views for your custom type, [as explained here](#typeview).
105 |
106 | ### Multiline Mode
107 |
108 | Multiline mode allows you to write many lines of code at once. You can press `Command+Return` on Mac or `Ctrl+Return` on Windows to run the code in the text field.
109 |
110 | 
111 |
112 | #### Code Snippets
113 |
114 | You can start off will pre-made code snippets. There is currently no way to save your own code snippets or have them automatically synced to a file though.
115 |
116 | 
117 |
118 | ### Assembly Inspector
119 |
120 | 
121 |
122 | The assembly inspector lets you inspect the available loaded assemblies. Clicking on any assembly will list the namespaces within that assembly, as this image illustrate.
123 |
124 | 
125 |
126 | Then, clicking an any namespace will list every _type which has static properties_. The idea is to browse through types
127 | which have actual static items to view when debugging the current state of some editor component. This way you can browse through all your instances easily.
128 | Ideally there would be some toggle to list every type or only this subset.
129 |
130 | 
131 |
132 | Finally, when clicking on any type's properties, you it will output the object for inspection in the console, as the image below, where the `SomeStaticObject` property has been clicked.
133 |
134 | 
135 |
136 | ### Namespace References
137 |
138 | You can add new namespace reference by simply using the [Assembly Inspector](#assemblyInspector) and clicking on any namespace (a ✓ checkmark will appear next to it).
139 |
140 | This way, you don't have to type `My.Very.Long.Namespace.MyObject` and can simply type `MyObject` directly.
141 |
142 | For simplicity of usage, these namespaces are automatically added in every coding session. Unfortunately, you can not remove them, so in the future, better control
143 | should be given over these.
144 |
145 | ```
146 | "UnityEngine",
147 | "UnityEditor",
148 | "System",
149 | "System.Collections",
150 | "System.Collections.Generic",
151 | "System.Linq"
152 | ```
153 |
154 | ### Creating your own type view
155 |
156 | Simply create a class that implements `ITypeView` and you're good to go! Inspectors on your type will automatically be using your new view.
157 |
158 | You also inherits form `ATypeView` which already provides a default implementation of most detail methods. You really only need to implement `GetView` in this case.
159 |
160 | If you want to experiment with creating a custom type view, you can look at the `Custom Type View` and `Custom Expandable Type View` reference implementations in the
161 | [Code Snippets](#codeSnippets) dropdown of the multiline view. Currently this will only output the correct inspector to the console when run once due to an unknown bug,
162 | so it's not exactly suitable for iterating with yet.
163 |
164 | # Author Contact
165 |
166 | Mathieu Rivest
167 | mathieur@unity3d.com
168 |
--------------------------------------------------------------------------------
/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a4b052e48c8fb4079bda74b557cfa46b
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Runtime.CompilerServices;
2 | using UnityEditor.UIElements;
3 |
4 | #if UNITY_2018_3_OR_NEWER
5 | [assembly: UxmlNamespacePrefix("UnityEditor.ImmediateWindow.UI", "imw")]
6 | #endif
7 |
--------------------------------------------------------------------------------
/Editor/AssemblyInfo.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ddcd77a83a5b441308cd12e68d6a7614
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Editor/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 52da467fe451e4d3f971768eb39d10ee
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/Resources/Styles.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 15d005cd59d1242dfbebc79c5f684d96
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/Resources/Styles/Main_Dark.scss:
--------------------------------------------------------------------------------
1 | /***************************************************************************************************
2 |
3 | *** Auto-Generated - Do not modify .uss File ***
4 |
5 | Only Modify Main.scss
6 |
7 | ***************************************************************************************************/
8 |
9 | //--------------------------------------------------------------------------------------------------
10 | // Pure theme colors
11 | //--------------------------------------------------------------------------------------------------
12 |
13 | $unity-text-color: #b4b4b4;
14 | $unity-list-hover-background: #484848;
15 | $unity-list-selected-background: #3e5f96;
16 | $unity-background: #383838;
17 |
18 | //--------------------------------------------------------------------------------------------------
19 | // Custom colors
20 | //--------------------------------------------------------------------------------------------------
21 |
22 | $unity-background-light-contrast: #3c3c3c; // For dark contrast, use: #404040 and #232323
23 | $unity-background-dark-contrast: #707070; // $
24 | $unity-text-color-highlight: #f4f4f4;
25 |
26 | $unity-installed-color-highlight: rgba(255,255,254,0.4);
27 | $not-installed-package-background-color: #424242;
28 |
29 | $package-tag-color: #ffa44e;
30 | $package-tag-recommended-color: #e4e4e4;
31 |
32 | $caret-text-color: #646464;
33 |
34 | $link-text-color: #4F80F8;
35 |
36 | $text-faded: rgba(255, 255, 255, 0.5);
37 | $property-label-enumerable: #954F9B;
38 | $property-label: #E16DEA;
39 | $property-label-private: #EB8752;
40 |
41 | $value-string: #E83F3B;
42 | $value-number: #9079F0;
43 | $value-null: $value-number;
44 |
45 | $method-name: #A1F7B5;
46 | $method-argument: #5CB0D7;
47 | $method-return: rgba(181, 65, 194, 0.89);
48 |
49 | //--------------------------------------------------------------------------------------------------
50 | // Custom backgrounds
51 | //--------------------------------------------------------------------------------------------------
52 | $installed-package-background: resource("Builtin Skins/DarkSkin/Images/MenuItemOn.png");
53 |
54 | $background-left-button: resource("Builtin Skins/DarkSkin/Images/btn left.png");
55 | $background-left-button-selected: resource("Builtin Skins/DarkSkin/Images/btn left on.png");;
56 | $background-mid-button: resource("Builtin Skins/DarkSkin/Images/btn mid.png");
57 | $background-mid-button-selected: resource("Builtin Skins/DarkSkin/Images/btn mid on.png");
58 | $background-right-button: resource("Builtin Skins/DarkSkin/Images/btn right.png");
59 | $background-right-button-selected: resource("Builtin Skins/DarkSkin/Images/btn right on.png");
60 |
61 | $background-button-slice-right: 0;
62 | $background-button-slice-left: 0;
63 | $background-button-slice-middle: 1;
64 |
65 | $background-status-outdated: resource("Images/Dark/download");
66 | $background-status-error: resource("Images/Dark/error");
67 |
68 | $background-spinner-normal: resource("Images/Dark/loading");
69 | $background-spinner-large: resource("Images/Dark/loading");
70 |
71 | $popup-background: resource("Builtin Skins/DarkSkin/Images/mini popup.png");
72 |
73 | $toolbar-background: resource("Builtin Skins/DarkSkin/Images/Toolbar.png");
74 | $toolbar-button-background: resource("Builtin Skins/DarkSkin/Images/toolbar button.png");
75 | $toolbar-button-active-background: resource("Builtin Skins/DarkSkin/Images/toolbar button act.png");
76 | $toolbar-button-pulldown-background: resource("Builtin Skins/DarkSkin/Images/toolbar pulldown.png");
77 | $toolbar-button-popup-background: resource("Builtin Skins/DarkSkin/Images/toolbar popup.png");
78 | $toolbar-search-textfield-background: resource("Builtin Skins/DarkSkin/Images/toolbarsearch.png");
79 | $toolbar-search-textfield-focus-background: resource("Builtin Skins/DarkSkin/Images/toolbarsearch focused.png");
80 | $toolbar-search-cancel-background: resource("Builtin Skins/DarkSkin/Images/toolbarsearchCancelButton.png");
81 | $toolbar-search-cancel-active-background: resource("Builtin Skins/DarkSkin/Images/toolbarsearchCancelButtonActive.png");
82 | $toolbar-search-cancel-off-background: resource("Builtin Skins/DarkSkin/Images/toolbarsearchCancelButtonOff.png");
83 |
84 | $cancel-background: resource("Builtin Skins/DarkSkin/Images/ShurikenCheckMarkMixed.png");
85 | $cancel-pressed-background: resource("Builtin Skins/DarkSkin/Images/ShurikenCheckMarkNormal.png");
86 | $popup-background: resource("Builtin Skins/DarkSkin/Images/popup.png");
87 | $popup-pressed-background: resource("Builtin Skins/DarkSkin/Images/popup act.png");
88 | $play-background: resource("Builtin Skins/DarkSkin/Images/IN foldout act.png");
89 | $play-pressed-background: resource("Builtin Skins/DarkSkin/Images/IN foldout.png");
90 | $context-background: resource("Builtin Skins/DarkSkin/Images/ShurikenModuleActive.png");
91 | $context-pressed-background: resource("Builtin Skins/DarkSkin/Images/ShurikenEmitterActive.png");
92 |
93 | $icon-node0: resource("Builtin Skins/DarkSkin/Images/node0 hex.png");
94 | $icon-node0-on: resource("Builtin Skins/DarkSkin/Images/node0 hex on.png");
95 | $icon-node1: resource("Builtin Skins/DarkSkin/Images/node1 hex.png");
96 | $icon-node1-on: resource("Builtin Skins/DarkSkin/Images/node1 hex on.png");
97 | $icon-node2: resource("Builtin Skins/DarkSkin/Images/node2 hex.png");
98 | $icon-node2-on: resource("Builtin Skins/DarkSkin/Images/node2 hex on.png");
99 |
100 | //--------------------------------------------------------------------------------------------------
101 | // Common stylesheet
102 | //--------------------------------------------------------------------------------------------------
103 | @import "common";
104 |
--------------------------------------------------------------------------------
/Editor/Resources/Styles/Main_Dark.scss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 815f04870b5a8487a99d29714023e2a9
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Editor/Resources/Styles/Main_Dark.uss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: cde256333961e4e90b7b4ff73a7ab08d
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: stylesheet
6 | externalObjects: {}
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
11 |
--------------------------------------------------------------------------------
/Editor/Resources/Styles/Main_Light.scss:
--------------------------------------------------------------------------------
1 | /***************************************************************************************************
2 |
3 | *** Auto-Generated - Do not modify .uss File ***
4 |
5 | Only Modify Main.scss
6 |
7 | ***************************************************************************************************/
8 |
9 | //--------------------------------------------------------------------------------------------------
10 | // Pure theme colors
11 | //--------------------------------------------------------------------------------------------------
12 |
13 | $unity-text-color: #000000;
14 | $unity-list-hover-background: #8f8f8f;
15 | $unity-list-selected-background: #3e7de7;
16 | $unity-background: #c2c2c2;
17 |
18 | //--------------------------------------------------------------------------------------------------
19 | // Custom colors
20 | //--------------------------------------------------------------------------------------------------
21 |
22 | $unity-background-light-contrast: #D5D5D5;
23 | $unity-background-dark-contrast: #6C6C6C;
24 | $unity-text-color-highlight: #f4f4f4;
25 |
26 | $unity-installed-color-highlight: rgba(1,0,0,0.3);
27 | $not-installed-package-background-color: #d1d1d1;
28 |
29 | $package-tag-color: #d25a00;
30 | $package-tag-recommended-color: #000;
31 |
32 | $caret-text-color: #646464;
33 |
34 | $link-text-color: #0808FC;
35 |
36 | $text-faded: rgba(0, 0, 0, 0.5);
37 | $property-label-enumerable: $text-faded;
38 | $property-label: rgb(142, 34, 150);
39 | $property-label-private: rgb(185, 86, 0);
40 |
41 | $value-string: rgb(197, 25, 22);
42 | $value-number: rgb(28, 1, 210);
43 | $value-null: $value-number;
44 |
45 | $method-name: #B12697;
46 | $method-argument: $value-number;
47 | $method-return: $unity-background-dark-contrast;
48 |
49 | //--------------------------------------------------------------------------------------------------
50 | // Custom backgrounds
51 | //--------------------------------------------------------------------------------------------------
52 | $installed-package-background: resource("Builtin Skins/LightSkin/Images/MenuItemOn.png");
53 |
54 | $background-left-button: resource("Builtin Skins/LightSkin/Images/btn left.png");
55 | $background-left-button-selected: resource("Builtin Skins/LightSkin/Images/btn left on.png");;
56 | $background-mid-button: resource("Builtin Skins/LightSkin/Images/btn mid.png");
57 | $background-mid-button-selected: resource("Builtin Skins/LightSkin/Images/btn mid on.png");
58 | $background-right-button: resource("Builtin Skins/LightSkin/Images/btn right.png");
59 | $background-right-button-selected: resource("Builtin Skins/LightSkin/Images/btn right on.png");
60 |
61 | $background-button-slice-right: 6;
62 | $background-button-slice-left: 6;
63 | $background-button-slice-middle: 1;
64 |
65 | $background-status-outdated: resource("Images/Light/download");
66 | $background-status-error: resource("Images/Dark/error");
67 |
68 | $background-spinner-normal: resource("Images/Light/loading");
69 | $background-spinner-large: resource("Images/Light/loading");
70 |
71 | $popup-background: resource("Builtin Skins/LightSkin/Images/mini popup.png");
72 |
73 | $toolbar-background: resource("Builtin Skins/LightSkin/Images/Toolbar.png");
74 | $toolbar-button-background: resource("Builtin Skins/LightSkin/Images/toolbar button.png");
75 | $toolbar-button-active-background: resource("Builtin Skins/LightSkin/Images/toolbar button act.png");
76 | $toolbar-button-pulldown-background: resource("Builtin Skins/LightSkin/Images/toolbar pulldown.png");
77 | $toolbar-button-popup-background: resource("Builtin Skins/LightSkin/Images/toolbar popup.png");
78 | $toolbar-search-textfield-background: resource("Builtin Skins/LightSkin/Images/toolbarsearch.png");
79 | $toolbar-search-textfield-focus-background: resource("Builtin Skins/LightSkin/Images/toolbarsearch focused.png");
80 | $toolbar-search-cancel-background: resource("Builtin Skins/LightSkin/Images/toolbarsearchCancelButton.png");
81 | $toolbar-search-cancel-active-background: resource("Builtin Skins/LightSkin/Images/toolbarsearchCancelButtonActive.png");
82 | $toolbar-search-cancel-off-background: resource("Builtin Skins/LightSkin/Images/toolbarsearchCancelButtonOff.png");
83 |
84 | $cancel-background: resource("Builtin Skins/LightSkin/Images/ol minus.png");
85 | $cancel-pressed-background: resource("Builtin Skins/LightSkin/Images/ol minus act.png");
86 | $popup-background: resource("Builtin Skins/LightSkin/Images/popup.png");
87 | $popup-pressed-background: resource("Builtin Skins/LightSkin/Images/popup act.png");
88 | $play-background: resource("Builtin Skins/LightSkin/Images/IN foldout act.png");
89 | $play-pressed-background: resource("Builtin Skins/LightSkin/Images/IN foldout.png");
90 | $context-background: resource("Builtin Skins/LightSkin/Images/ShurikenModuleActive.png");
91 | $context-pressed-background: resource("Builtin Skins/LightSkin/Images/ShurikenEmitterActive.png");
92 |
93 | $icon-node0: resource("Builtin Skins/LightSkin/Images/node0 hex.png");
94 | $icon-node0-on: resource("Builtin Skins/LightSkin/Images/node0 hex on.png");
95 | $icon-node1: resource("Builtin Skins/LightSkin/Images/node1 hex.png");
96 | $icon-node1-on: resource("Builtin Skins/LightSkin/Images/node1 hex on.png");
97 | $icon-node2: resource("Builtin Skins/LightSkin/Images/node2 hex.png");
98 | $icon-node2-on: resource("Builtin Skins/LightSkin/Images/node2 hex on.png");
99 |
100 | //--------------------------------------------------------------------------------------------------
101 | // Common stylesheet
102 | //--------------------------------------------------------------------------------------------------
103 | @import "common";
104 |
--------------------------------------------------------------------------------
/Editor/Resources/Styles/Main_Light.scss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 760cb60b127c04a6b9570374f3988782
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Editor/Resources/Styles/Main_Light.uss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 685b5a2cf1a9740f284941a10131e03f
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: stylesheet
6 | externalObjects: {}
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
11 |
--------------------------------------------------------------------------------
/Editor/Resources/Styles/_common.scss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 758496e2795624839a966e27d5ef807f
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: cf9b389c625f04dc88e6bbafa4e42ffa
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/Alert.uxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/Alert.uxml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3b7b38a70ba204ef9b9728dd77e242de
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: tree
6 | 11400002: inlineStyle
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
12 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/Console.uxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/Console.uxml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: daf1b2945700f4091b505bbb94a6609c
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: tree
6 | 11400002: inlineStyle
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
12 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/ConsoleOutput.uxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/ConsoleOutput.uxml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9f8fceccfd5774c3cad7e9eec1228a39
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: tree
6 | 11400002: inlineStyle
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
12 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/ConsoleToolbar.uxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/ConsoleToolbar.uxml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5362f3744e50e4dee80b433dcb5474b8
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: tree
6 | 11400002: inlineStyle
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
12 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/Context.uxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/Context.uxml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ee6be7e6c81e94c15b9f6bf65ab29e54
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: tree
6 | 11400002: inlineStyle
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
12 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/ImmediateWindow.uxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/ImmediateWindow.uxml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f3c5a1a3fc8fc476bb090d48742b66e4
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: tree
6 | 11400002: inlineStyle
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
12 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/OutputItem.uxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/OutputItem.uxml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0b7c5b9ddc24c4a79a5044b47960f860
3 | ScriptedImporter:
4 | fileIDToRecycleName:
5 | 11400000: tree
6 | 11400002: inlineStyle
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
12 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/UIElementsSchema.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0a03df67578224c10aabe9653d9eb74b
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/UIElementsSchema/UIElements.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/UIElementsSchema/UIElements.xsd.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 37a45680e2f5f40cd8ad720daad61f6f
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/UIElementsSchema/UnityEditor.Experimental.UIElements.xsd.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1a46e91273b2845c19cd3443136d6a80
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/UIElementsSchema/UnityEditor.ImmediateWindow.UI.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/UIElementsSchema/UnityEditor.ImmediateWindow.UI.xsd.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bd5730f8f8ed84dc0aedf3d521171c67
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Editor/Resources/Templates/UIElementsSchema/UnityEngine.Experimental.UIElements.xsd.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1b3cd853e4c24400691fdbba762e5940
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Editor/Sources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b9db772508c39436daec2fbf7055c5c2
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/Sources/Services.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a6694c8ab26ae45a28910e09accd0d28
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/Sources/Services/Analytics.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 09db9831d3a3f4a94a9fd5faf693a1e5
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/Sources/Services/Analytics/ImmediateWindowAnalytics.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace UnityEditor.ImmediateWindow.UI
4 | {
5 | [Serializable]
6 | public struct ImmediateWindowAnalytics
7 | {
8 | public bool MultilineMode;
9 | };
10 | }
--------------------------------------------------------------------------------
/Editor/Sources/Services/Analytics/ImmediateWindowAnalytics.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5628a5eed48df40d7891e370e88026b9
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Editor/Sources/Services/Code.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c953ca809ce9b4946a2eae29dec6274a
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Editor/Sources/Services/Code/Evaluator.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using Microsoft.CodeAnalysis;
6 | using Microsoft.CodeAnalysis.CSharp;
7 | using UnityEngine;
8 | using Microsoft.CodeAnalysis.CSharp.Scripting;
9 | using Microsoft.CodeAnalysis.Scripting;
10 | using Microsoft.CodeAnalysis.Recommendations;
11 | using Microsoft.CodeAnalysis.Text;
12 | using UnityEditor.ImmediateWindow.Services;
13 |
14 | namespace UnityEditor.ImmediateWindow.Services
15 | {
16 | // Evaluation Manager
17 | internal class Evaluator
18 | {
19 | private static Evaluator instance = new Evaluator();
20 | public static Evaluator Instance { get { return instance; } }
21 |
22 | public event Action