Skip to content

SemVer in Project Settings#2

Open
Hikaru11747 wants to merge 1 commit intojeffcampbellmakesgames:masterfrom
Hikaru11747:projectSettings
Open

SemVer in Project Settings#2
Hikaru11747 wants to merge 1 commit intojeffcampbellmakesgames:masterfrom
Hikaru11747:projectSettings

Conversation

@Hikaru11747
Copy link
Copy Markdown

@Hikaru11747 Hikaru11747 commented Feb 28, 2026

Added a Project Settings page for SemVer to directly increment/maintain versioning.
Updates the bundleVersion on OnValidate() aswell.

Updates the bundleVersion on OnValidate().
@jeffcampbellmakesgames
Copy link
Copy Markdown
Owner

This looks interesting, can you tell me more about you're using this in context? I could see a build processor increment or manipulate this as a part of a build, but it could also do that directly on the PlayerSettings.bundleVersion (capture the current value, increment it, and then re-assign it).

@Hikaru11747
Copy link
Copy Markdown
Author

Hi there @jeffcampbellmakesgames, Yes I see it as a way to access and maintain versioning right in the project settings, but i've also observed it resets the version on restart it's cause of the how semver class is initialised in the settings, and yeah what you've suggested can solve this issue where it can read back the bundle version and keep it updated properly.

@Hikaru11747
Copy link
Copy Markdown
Author

Hikaru11747 commented Mar 6, 2026

I hadn't really thought about doing incremental builds before, but that’s actually a nice idea. My only concern is around failed builds. Would we still bump the version even if the build fails?

I guess it might also depend on the type of build. For example, if it's a prerelease build we might just increment the prerelease number instead of the patch version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants