-
Notifications
You must be signed in to change notification settings - Fork 95
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
[guide] Changing the ink menu item's index if you need it. #18
Comments
Wowee, you should write the documentation! We'll change it to 120, good On Thursday, 7 July 2016, Clément Busschaert notifications@github.com
|
I recently added a few script templates to my Unity installation, because I'm using a lot of custom editors and scriptable objects, and this happened:
As you see, there is no longer a separator before the ink item. This is because my templates use the order space between 90 and 100: the same thing would happen if you created an asset menu item with an order of 95 for example. Though in that case, unless your assets are heavily related to scripts, I'd suggest you change your own order to above 120, because it's way easier.
It's not a problem in itself, so you could ignore it. But if it bothers you, like me, because you heavily rely on the separators to survey a menu, here's what you must change:
Assets/Plugins/Ink/Editor/Tools
.InkEditorUtils
.100
value to whatever you need.small explanation of how menu order indices work
Note that the order of the
scene
item is 191 and the lastshader
item has an order of 90 (pseudo-ignored for the separator because its parent menu has the order of the firstshader
, which is 83).If you want a separator, you need a gap of at least 11 order indices between two items. So, by default, you have enough space between the scripts "section" and the scene "section" to fit 9 individual separated items, of orders 94, 105, 116, 127, 138, 149, 160, 171, and 182. Remember that if you have nested items, only the smallest order of the whole architecture counts. (on my screenshot,
Adventure
contains a bunch of items, the smallest beingAdventure/Interactions/Generic
at 110 (which is why it's not separated from theink
item), and the biggestAdventure/Inventory/Item
at 125, though to have a separator to the next item, that item would only need to be of order 121 at least, becauseAdventure
is registered at 110.)The text was updated successfully, but these errors were encountered: