How to change NoesisView.Xaml in Runtime?
Hi, I'm try to change the NoesisView.Xaml in runtime.
I create a script and attach to the obj which has the NoesisView component. But the 'test.xaml' gui not show when project run.
NoesisGUI version is 3.1.6. Unity version is 2022.1.6f1c1
Thanks a lot!
I create a script and attach to the obj which has the NoesisView component. But the 'test.xaml' gui not show when project run.
Code: Select all
public class DynamicXmal : MonoBehaviour
{
void Awake()
{
var xaml = ScriptableObject.CreateInstance<NoesisXaml>();
xaml.content = File.ReadAllBytes(Path.Combine(Application.streamingAssetsPath, "test.xaml"));
xaml.Load();
var view = GetComponent<NoesisView>();
view.Xaml = xaml;
}
}
Thanks a lot!
Who is online
Users browsing this forum: Google [Bot] and 1 guest