Ctrl + D question

In my version of Unity, creating A2 script and pressing Ctrl + D, it create A2 1, A2 2, A2 3… How can i change this to create A2, A3, A4 ?

image

Hi Playsenho,

As far as I know, you can’t. Unity adds the numbers automatically.

Nevertheless, please feel free to ask our helpful community of students over on our Discord chat server. Maybe there is a way to change the behaviour.

I think the closest hack would be just name your object A, so duplicating it would make them A 1, A 2, A 3.

Otherwise you can look into writing your own editor script (https://docs.unity3d.com/ScriptReference/Editor.html) , but the time invested in that might just be worth renaming your objects.

Privacy & Terms