|
How I can change the Name of a Javascript file? ("NewBehavoiurScript")? I cant find any rename button (enter or F2 also doesnt work). Im using a mac. Thanks
(comments are locked)
|
|
Select the JavaScript file or any other object in Unity and press:
Thank you, the Problem was my external usb keyboard :D
Mar 15 '10 at 11:01 AM
Tobias
You're welcome... If you haven't read that already you should take a look if you are new around here or http://stackoverflow.com: http://answers.unity3d.com/faq regards
Mar 15 '10 at 11:08 AM
Lipis
That is a lifesaver. Also works on material assets etc. This is so counterintuitive that it should be fixed in Unity.
20 hours ago
flberger
(comments are locked)
|
|
Aside from the return key, you can click on a file, wait for a bit, then click again (don't click again too fast). This is also the same way to rename files in the OS.
(comments are locked)
|
|
The only way to fully and gracefully rename a monobehaviour script that I have found:
Now your monobehaviour class is fully renamed / refactored.
(comments are locked)
|
|
Hitting F2 in Windows with folders doesn't work sometimes - it just goes back to the former folder (just like a Assets folder keep re- appearing within the Assets folder after deleting it). Clicking twice on the folder name and then giving it a new name works however, so it seems to be broken on windows at times. I've found it's the other way round, double clicking no matter what speed you do doesn't work sometimes. F2 seems to work fine for me and remains working fine even when double clicking doesn't work.
Apr 08 '11 at 11:54 AM
AngryOldMan
(comments are locked)
|
|
I have also found that if you create a new folder in project view (called "new folder" by default) then edit the name, then press enter, it just pops back to "new folder". Its very frustrating. I think this could be a bug. Im using windows vista and unity 3 pro and ran it a admin but still no luck.
(comments are locked)
|
