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.

static function Statement(formatString: string, params arguments: object[]): void;

Description

Emits a block of ActionScript code in the current method translating variable and field references to their ActionScript names.

	import UnityEngine.Flash;
	
	var v = 42;
	ActionScript.Statement("trace({0})", v);