Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce "Unity Class" and "Unity Shader" grouped file templates #1983

Merged
merged 3 commits into from
Jan 12, 2021

Conversation

citizenmatt
Copy link
Member

This PR will group Unity file templates for C# into a single "Unity Class" menu item, and do the same for shaders, putting them into a "Unity Shader" menu item. Selecting this item will open a further popup to allow entering the file name, and selecting the actual template to use.

The implementation is very simple - add a common UITag entry for each template. However, Rider will group templates based on scope point, so C# script templates appear in a different section to C# editor script templates, and multiple "Unity Class" entries are shown. This PR includes a workaround by introducing a dummy scope point that all file templates declare, and puts them all in the same section. See RIDER-10132.

The icon is also temporary (it's the Unity scene icon) and will be replaced once RIDER-55956 is complete.

Screenshot 2020-12-28 at 4 36 35 pm

Screenshot 2020-12-28 at 4 36 46 pm

@citizenmatt citizenmatt added this to the Rider 2021.1 milestone Dec 28, 2020
@citizenmatt citizenmatt self-assigned this Dec 28, 2020
@citizenmatt citizenmatt merged commit 7bdc73d into net211 Jan 12, 2021
@citizenmatt citizenmatt deleted the net211-mte-template-groups branch January 12, 2021 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants