Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseGet 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