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

Prefab brush is not showing or working both are error #339

Open
RahamatStudio opened this issue Apr 27, 2022 · 1 comment
Open

Prefab brush is not showing or working both are error #339

RahamatStudio opened this issue Apr 27, 2022 · 1 comment

Comments

@RahamatStudio
Copy link

Assets\Settings\Scenes\Brushes\PrefabBrushes\BrushMenuItem.cs(14,30): error CS0122: 'EBrushMenuItemOrder' is inaccessible due to its protection level

when i import this package and error this line. please help me how to solve this and work my project.

@ChuanXin-Unity
Copy link
Collaborator

Hi, could you share how you have imported the package? It seems like you have copied the source for PrefabBrush to your Asset folder. If that is the case, you can edit the BrushMenuItem source file directly and change EBrushMenuItemOrder.* to appropriate values (4 for PrefabBrush) as listed in https://github.com/Unity-Technologies/2d-extras/blob/master/Editor/Menu/MenuItemOrder.cs . The value used is for ordering the menu item alphabetically.

Hope that helps!

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

No branches or pull requests

2 participants