Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Flash.FlashPlayer.TargetSwfVersion

public static string TargetSwfVersion;

Description

Get a string representing the version of the SWF which the current project has been compiled against.

using UnityEngine.Flash;
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    public string swfVersion = FlashPlayer.TargetSwfVersion;
}