UnitySelect
UnitySelect is a Visual Studio Code extension that allows you to easily select assets in Unity directly from VSCode.
Features
- Right-click on a file in the VSCode explorer and select "Select in Unity" to highlight the corresponding asset in the Unity Editor.
- Use the command palette or a keyboard shortcut to select the asset of the currently open file in Unity.
Installation
- Install the extension from the Visual Studio Code Marketplace.
- Configure the port number used to communicate with Unity if different from the default 50000.
- Follow the instructions in https://github.com/veyselerCS/UnitySelect-Unity for the Unity side.
Usage
Selecting an Asset from the Explorer
- Right-click on a file in the VSCode explorer.
- Choose "Select in Unity" from the context menu.
- The corresponding asset will be highlighted in the Unity Editor.
Selecting an Asset from the Editor
- Open a file in the VSCode editor.
- Use the command palette (
Ctrl+Shift+P or Cmd+Shift+P on Mac) and type "Select in Unity from Editor".
- Alternatively, use the default keyboard shortcut
Ctrl+Alt+U to trigger the command.
- The corresponding asset will be highlighted in the Unity Editor.
Configuration
You can configure the port number used to communicate with Unity through the VSCode settings:
- Open the command palette and type "Preferences: Open Settings (UI)".
- Search for "UnitySelect".
- Adjust the port number as needed.
Requirements
- Unity Editor running with the appropriate script to listen for commands.
- The default port number is 50000, but it can be configured in the extension settings.
Known Issues
- Make sure the Unity Editor is running and listening on the specified port.
- Ensure the file paths start with "Assets" to be correctly recognized by the extension.
Release Notes
0.0.2
- Initial release of UnitySelect.
Please report any issues or feature requests on the GitHub repository.
License
MIT License. See LICENSE for more information.
| |