App: version

version
  • Returns the version of Blender/BGE being used

Return Type:
  • integer tuple: ( int, int, int )
Values:
  • First integer: Major update version number
     
  • Second integer: Minor update version number
     
  • Third integer: Subversion number
Example:
  • Blender 2.77 a returns: ( 2,  77, 0 )
Sample Code

################## BGE version
 
# import bge

import bge

# BGE version
vers = bge.app.version