View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001951||NoesisGUI||Unreal||public||2021-03-26 15:29||2021-04-19 12:16|
|Target Version||Fixed in Version|
|Summary||0001951: XAML assets not recognized as placed in Plugin's Content|
|Description||In various places of NoesisGUI plugin sources, `/Game/` prefix is hardcoded, meaning the asset is presumed to reside under the Content folder of Project, however it does not work for ones in Plugin's Contents, notably these ones:|
(1) I would recommend the argument being passed into `LoadXAML()` function be just the xaml asset name, and by using AssetRegistry, a `FAssetData` could be fetched based on that name as the key. Then that `FAssetData` could be converted to `UObject*`, in our case as `UNoesisXaml*` as noted here:
That operation actually also invokes `LoadObject()` under the hood.
That way, we would not have to preprocess the path with `/Game/`, regardless of where the asset resides, either in Project's Content or Plugin's Content folder.
Besides, it would be great if you could make the loading asynchronous as recommended here in case we have numerous xaml asset widgets:
(2) Otherwise, it looks like in here:
We could pass the UE asset path as it is directly like these:
If so, that path could be forwarded to FNoesisXamlProvider::LoadXaml() and fed well to `LoadObject`, without having to use AssetRegistry I guess.
|Tags||No tags attached.|
|2021-03-26 15:29||Tadinu||New Issue|
|2021-03-26 15:29||Tadinu||Status||new => assigned|
|2021-03-26 15:29||Tadinu||Assigned To||=> hcpizzi|
|2021-03-26 15:36||jsantos||Target Version||=> 3.0.12|
|2021-03-28 08:50||Tadinu||Description Updated||View Revisions|
|2021-03-31 05:18||Tadinu||Description Updated||View Revisions|
|2021-03-31 05:19||Tadinu||Description Updated||View Revisions|
|2021-04-19 12:15||sfernandez||Target Version||3.0.12 =>|
|2021-04-19 12:16||sfernandez||Relationship added||duplicate of 0001961|