Re: How to work with UI Scaleform in C#?

#2
private void CreateAndAccessUI()
{

//Create or Get Instance of UI Element
Common.IUIElement mUIElement = Common.Global.gEnv.pFlashUI.GetUIElement("GFXTest");
mUIElement.SetVisible(true);

//Call a function
TUIData data = new TUIData();
SUIArguments args = new SUIArguments();
SFlashVarValue fVal = new SFlashVarValue("Test");
args.AddArguments(fVal, 1);
mUIElement.CallFunction("TestFunction", args);

}

Who is online

Users browsing this forum: No registered users and 1 guest