Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Flash.FlashPlayer.TargetSwfVersion

static var TargetSwfVersion: string;
static string TargetSwfVersion;
static TargetSwfVersion as string

Description

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

	import UnityEngine.Flash;
	
	var swfVersion = FlashPlayer.TargetSwfVersion;
using UnityEngine.Flash;
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    public string swfVersion = FlashPlayer.TargetSwfVersion;
}
import UnityEngine.Flash
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	public swfVersion as string = FlashPlayer.TargetSwfVersion