-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Needs some methods to define node for templating node structure feature #435
Comments
Basically, current node system is like Prefab non containing children. It means node system is already has such feature. So, this is suggestion of feature.
For consistency, 4th argument should be able to receive string as base node name also. This shall contain some nodes like below.
|
I think this notation will break the consistency of node system. I think that this function should be implemented on the existing node and component framework. so, I propose template nodeDefinitiongr.registerNode("template",[TemplateComponent]); Usage<template goml="template.goml" autoResolve="true"/> Template Component replace this node by Template Componentvar tmp = gr("*")("template").first().getComponent("Template");
// template from GOML
tmp.setAttribute("goml",goml_data);
// clone other node tree structure.
tmp.clone(gr("*")("#template_target").firsst());
//execute parsing template and replace this node manually.
tmp.resolve(); |
その他の属性はルートに付与 |
Sometimes, we needs to define some node structure like Prefab in unity
The text was updated successfully, but these errors were encountered: