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.TargetVersion

static var TargetVersion: string;
static string TargetVersion;
static TargetVersion as string

Description

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

	import UnityEngine.Flash;
	
	var playerVersion = FlashPlayer.TargetVersion;
using UnityEngine.Flash;
using UnityEngine;
using System.Collections;

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

public class ExampleClass(MonoBehaviour):

	public playerVersion as string = FlashPlayer.TargetVersion