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.
CloseEmits 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);
using UnityEngine.Flash; using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public int v = 42; void Example() { ActionScript.Statement("trace({0})", v); } }
import UnityEngine.Flash import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): public v as int = 42 def Example() as void: ActionScript.Statement('trace({0})', v)