• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
5
Question by maheroku · Jun 19, 2015 at 08:54 PM · gameobjectscenename

Incrementing Gameobject number when duplicating Gameobject

Few days ago I upgraded to the latest Unity - 5.1.0f3 from 5.1.0f2 and now when I duplicate game objects in the scene the naming convention has changed.

It used to be the following: duplicating enemy001 will give me enemy002 then enemy003 and so on.

Now it is the following: duplicating enemy001 will give me enemy001 (1) then enemy001 (2) and so on.

Is there a way to get the old behaviour back from a setting because I cannot find it.

It may seem like it is not a big deal but it is a lot of manual work for me to be renaming objects.

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image OctoMan · Jun 19, 2015 at 09:15 PM 1
Share

Not sure why you need it, better use tags or layers to manage stuff, ins$$anonymous$$d of naming alot objects the same name.

avatar image maheroku · Jun 19, 2015 at 09:37 PM 0
Share

I just like to keep things organized in the scene and following the same naming convention. This aspect doesn't even touch the game code at all.

avatar image Sophophilia_Studios · Dec 20, 2015 at 05:49 PM 0
Share

I would also like to know this too! maheroku, have you figured it out yet?

avatar image maheroku · Dec 25, 2015 at 03:36 PM 0
Share

Nope, I ended up renaming them manually.

avatar image MistaGoustan · Jan 08, 2017 at 06:37 PM 0
Share

I know I shouldn't be posting a question but it won't let me contribute to it. what about if you control shift and rename all but you want to add the numbers at the end again?

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by shieldgenerator7 · Dec 23, 2020 at 10:25 AM

To change how Unity auto-numbers duplicate GameObjects, go to

Edit->Project Settings...->Editor->Numbering Scheme->Game Object Naming

Select the option you want from the dropdown.

alt text


unity-editor-numbering-scheme.png (179.1 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CapClumsy · Jan 04 at 08:44 PM 0
Share

It won't show up in my project settings, I've scrolled down and it's not there. I've searched the project settings for numbering scheme and nothing shows up. I'm using version 2019.4.17f1. Do you know what's wrong? alt text

screenshot-2021-01-04-154349.png (59.5 kB)
avatar image
1

Answer by Sophophilia_Studios · Dec 29, 2015 at 01:32 AM

If you name the object gameObject (0) or and number inside the " ( ) " then unity will auto increment the next duplicate/clone of it

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Get the name of an instance's prefab at runtime? 0 Answers

Problem to rename gameobject when loading from file. 0 Answers

How can i save/load a changing variable in a scene file?(EX:highscore/name) 1 Answer

Can't see my gameobjects in scene view 1 Answer

Unable to view colours in game view 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges