Skip to content

Other: Set target API version

Mixer edited this page Oct 12, 2021 · 3 revisions

Set script's target API version

MixerAPI is designed to provide backwards compatibility for scripts. It means that you can use older API version with newest versions of scripts without rewriting these scripts

Latest API version is now 1.0.0

TargetVersion.set(apiVerMaj, apiVerMin, apiVerRev)

API version: 1.0.0

  • Parameter:
  • apiVerMaj: Integer - API version major
  • apiVerMin: Integer - API version minor
  • apiVerRev: Integer - API version revision
Example:
const api = require('./MixerAPI.js')

api.TargetVersion.set(1, 0, 0)