How I Version Products in Unreal Engine


// Unreal Engine // Published on June 16, 2021, 1 p.m.


Beginner Intermediate Advanced

While waiting for this to be added to Unreal I came up with an alternative. This python script will update the version in your DefaultGame.ini.

import configparser
import sys
import argparse

def main(argv):
  parser = argparse.ArgumentParser()
  parser.add_argument('Workspace', help='The path to the project that you\'re wanting to use!')
  parser.add_argument('NewVersion', help='The new version to set for the project.')
  args = parser.parse_args()

  config_file = args.Workspace + '/Config/DefaultGame.ini'

  config = configparser.ConfigParser()
  config['/Script/EngineSettings.GeneralProjectSettings']['ProjectVersion'] = args.NewVersion

  with open(config_file, 'w') as configfile:

if __name__ == "__main__":


It's not ideal as something like this should be added to UBT, but it doesn't exist (unless that PR gets merged) so this will work for now.

All you have to do is py C:\ %WORKSPACE% 1.0.0.%PLASTICSCM_CHANGESET_ID%.%BUILD_NUMBER% or something similar. This is from my Jenkins project so I can automate changing the version numbers.


until next time