I have a couple of menu items that I wish to use in the unity iphone version (which work just fine in Unity 2.1 and 2.5), but I cannot get them to appear in the menu. Am I missing something?
Thanks!
I have a couple of menu items that I wish to use in the unity iphone version (which work just fine in Unity 2.1 and 2.5), but I cannot get them to appear in the menu. Am I missing something?
Thanks!
Menu items? What are you doing and can you share some code?
Note: and I’m moving this to iPhone Development as it seems iPhone specific.
Sure! I was trying to use this script from the wiki page and have something I can use to SnapToGrid to help my placement.
However, when I put this in the Editor folder, I don’t see the menu item show up anywhere (I would expect to see this under the Game Object menu).
Thanks for looking into it for me.
That’s funny, I just did this about an hour ago. It definitely works. Make sure that the file name of the script matches the class name in the script, and make sure that the “Editor” folder is spelled correctly (don’t know if capitalization counts).
Edit: Just realized that I’m running 1.02 RC1, could this be broken in 1.01?
I’ve finally had a chance to sit back down to writing and I still cannot get this to work. I’ve created an Editor folder just as it should have and included only a single script and there is nothing under the GameObject menu.
Am I missing something?
Just tried it in 1.02. Works for me.
I went to the wiki link, selected all the text in the code box, created a new file in Unitron, pasted the code, saved file in:
/Assets/Editor/SnapToGrid.cs
Just this morning I figured out what it was. Because I hadn’t dealt with all the compiler errors yet (as I had migrated my project from Unity 2.1 to Unity iPhone), there was a problem with the script I was trying to use which would clearly make the item not appear on the toolbar.
I appreciate everyone for trying this and showing me that it was my problem, not Unity. =)
Thanks!