int EngineVersion { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The EngineVersion property of the Package class indicates the version of the game engine that was used when the package was uploaded. This information is crucial for maintaining compatibility, especially when the base game undergoes significant API changes. By knowing the engine version, developers can ensure that their packages remain functional and compatible with the current version of the game engine.

Usage

To access the EngineVersion property, you need to have an instance of the Package class. This property is read-only and returns an integer representing the engine version.

Example

// Example of accessing the EngineVersion property

// Assume 'package' is an instance of Sandbox.Package
int engineVersion = package.EngineVersion;

// Output the engine version
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use the appropriate logging or UI display method
Log.Info($"Engine Version: {engineVersion}");