Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 na$$anonymous$$g 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 na$$anonymous$$g 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 rena$$anonymous$$g 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
3
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 3 · 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, 2021 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 christianh1205 CapClumsy · Sep 23, 2021 at 08:43 AM 0
Share

Did you find out where the Numbering Scheme is? I have the Same Issue.

Im using Version 2019.4.29f1

avatar image aaronrums · Mar 09, 2021 at 10:43 AM 0
Share

I can confirm in unity 2020.1.1 this method still works just as shown here.

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.

Follow this Question

Answers Answers and Comments

10 People are following this question.

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

Related Questions

How to compare names of two GameObjects to check whether their names are equal or not? 1 Answer

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

Levels: scenes or GameObjects? 3 Answers

Best workflow for DontDestroyOnLoad method regarding Unity Editor? 1 Answer

How Can I Copy My Gameobject To Other Scene How Can I Copy Gameobject to different scene 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges