What is the current directory?
Posted: 31 Dec 2021, 10:35
I'm intergate noesis to o3de, create a gem named noesisgem, and in one file named NoesisManager.cpp called this code
should I put the Test.xaml the same diretory of NoesisManager.cpp ?
Here is the Test.xaml, I just use this line to load, but it return null
Code: Select all
Noesis::GUI::SetXamlProvider(MakePtr<LocalXamlProvider>("."));
Noesis::GUI::SetFontProvider(MakePtr<LocalFontProvider>("."));
Noesis::GUI::SetTextureProvider(MakePtr<LocalTextureProvider>("."));Here is the Test.xaml, I just use this line to load, but it return null
Code: Select all
Noesis::Ptr<Noesis::Grid> xaml = Noesis::GUI::LoadXaml<Noesis::Grid>("Test.xaml");