UDN
Search public documentation:
GFxVariableAccessKR
English Translation
日本語訳
中国翻译
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
日本語訳
中国翻译
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
외부 SWF 에서 변수 접근하는 법
문서 변경내역: James Tan 작성. 홍성진 번역.
개요
UnrealScript 안의 외부 SWF 파일에서 변수를 접근하는 법을 보여주는 예제입니다.
var MyString:String = "Something cool"; var MyNumber:Number = 37; var MyBoolean:Boolean = true;
var bool myBoolean; var string myString; var float myNumber; var GFxObject RootMC RootMC = GetVariableObject("_root"); /* AS 변수 구하기 */ myBoolean = RootMC.GetBool("MyBoolean"); myString = RootMC.GetString("MyString"); myNumber = RootMC.GetFloat("MyNumber"); `log("##### MyBoolean: "@myBoolean); `log("##### MyString: "@myString); `log("##### MyNumber: "@myNumber); /* AS 변수 설정하기 */ RootMC.SetBool("MyBoolean", false); RootMC.SetString("MyString", "Something AWESOME!"); RootMC.SetFloat("MyNumber", 100); `log("##### MyString changed to: "@RootMC.GetString("MyString"));