Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
This question was closed Feb 19, 2018 at 06:39 AM by Wokarol for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by Wokarol · Dec 20, 2017 at 12:18 AM · projectsimplemanagement

Version tracking

Is there any easy way to have version number and build index (which increment every time I build game) in Unity project? For exaple when I save project it will be saved to folder named "[project name]_[version]" (for example "EasyPlatformer_4_36"). And have that version stored in variable so I will be able to write: about.text = "Version " + version + " build " + build.
I hope you understand what I had in mind.

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 nt314p · Dec 20, 2017 at 12:51 AM 0
Share

How many builds are you creating because if it's just a few, you could just hardcode the version and build number.

avatar image Wokarol nt314p · Dec 20, 2017 at 06:21 AM 0
Share

@n314p // Not many, but that number will be increaseing.
Hardcode it isn't a bad idea but how it will be most optimal?

avatar image nt314p Wokarol · Dec 21, 2017 at 12:36 AM 0
Share

What do you mean by optimal?

Show more comments
avatar image ShadoX · Dec 20, 2017 at 12:35 PM 0
Share

maybe it's possible to have a Editor script that let's you do this ? just a guess

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by Xarbrough · Dec 21, 2017 at 01:10 AM

You can use the Build Player Pipeline to increment your version number. You could just store a text file or ScriptableObject in your asset folder, load it, increment the number and then build how you like. If you google "Build Script" and "-Pipeline" you should find other examples. There are also open source and Asset Store tools for this. No built-in or easy method though.

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

Follow this Question

Answers Answers and Comments

73 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Flashlight Moving Awkwardly 0 Answers

Share (and edit) assets across different projects 0 Answers

How Does One "Setup" For A New Project 1 Answer

version control - related to another question 1 Answer

question Project Maintenance 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