Hello! can i load custom gui component via xml template? like <MyCustomImage source="imageKey" width = "1" height = "1" />
yep! but i need load custom , extends babylonjs gui component. or maybe somehow override Image.source,to load image from my assetmanager by key,not by url.
Well then you need to extends the loader then:
import { _TypeStore } from 'babylonjs/Misc/typeStore';
/**
* Class used to load GUI via XML.
*/
export class XmlLoader {
private _nodes: any = {};
private _nodeTypes: any = {
element: 1,
attribute: 2,
text: 3
};
private _isLoaded: boolean = false;
private _objectAttributes: any = {
"textHorizontalAlignment": 1,
"textVerticalAlignment": 2,
"horizontalAlignment": 3,
This file has been truncated. show original