Skip to content

Remove warning about using layouts in conjunction with templates #501

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

Merged
merged 1 commit into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions docs/en/manuals/gui-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ The template instance is listed as a collapsible entry in the *Outline* view. Ho

Nodes that are part of a template instance are automatically named with a prefix and a slash (`"/"`) attached to their *Id*. The prefix is the *Id* set in the template instance.

::: important
Overriding template instance node values in *Layouts* is currently not working in Editor 2. If you need to use layouts in conjunction with templates, please use Editor 1 until the issue is resolved.

See https://github.com/defold/editor2-issues/issues/1124
:::

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: A version of this manual also exists in Korean at docs/ko/manuals/gui-templates.md, but it did not appear to contain this warning.

## Modifying templates in runtime

Scripts that manipulate or query nodes added through the templating mechanism only need to consider the naming of instance nodes and include the template instance *Id* as a node name prefix:
Expand Down
6 changes: 0 additions & 6 deletions docs/pl/manuals/gui-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ Instancja szablonu jest wylistowana jako składana pozycja w widoku *Outline*. J

Węzły, które są częścią instancji szablonu, są automatycznie nazwane przyrostkiem i ukośnikiem (`"/"`) do ich *Id*. Przyrostek ten to *Id* ustawione w instancji szablonu.

::: important
Zastępowanie właściwości węzłów instancji szablonu w *Layouts* nie działa obecnie w Edytorze.

Zobacz https://github.com/defold/editor2-issues/issues/1124
:::

## Modyfikowanie szablonów w czasie działania programu

Skrypty, które manipulują lub sprawdzają węzły dodane za pomocą szablonów, muszą uwzględniać tylko nazwy węzłów instancji i uwzględniać *Id* instancji szablonu jako prefiks nazwy węzła:
Expand Down
6 changes: 0 additions & 6 deletions docs/ru/manuals/gui-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ GUI-шаблон --- это обычная GUI-сцена, поэтому он

Ноды, являющиеся частью экземпляра шаблона, автоматически именуются с префиксом и слэшем (`"/"`), прикрепленным к их *Id*. Префикс --- это *Id*, установленный в экземпляре шаблона.

::: important
Переопределение значений нод экземпляра шаблона в *Layouts* в настоящее время не работает в Editor 2. Если необходимо использовать макеты в сочетании с шаблонами, пожалуйста, используйте Editor 1, пока эта проблема не будет решена.

См. https://github.com/defold/editor2-issues/issues/1124
:::

## Изменение шаблонов в рантайме

Скрипты, которые манипулируют или запрашивают ноды, добавленные через механизм шаблонов, должны учитывать только именование нод экземпляра и включать *Id* экземпляра шаблона в качестве префикса имени ноды:
Expand Down
6 changes: 0 additions & 6 deletions docs/zh/manuals/gui-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ GUI 模板也是一种场景, 创建和普通场景一样. 在 *Assets* 面板

有些模板实例会自动以 模板名加正斜杠 (`"/"`) 加 *Id* 的形式命名.

::: sidenote
修改模板实例中 *Layouts* 属性在目前2代编辑器中无效. 必须使用的话请使用1代编辑器.

参见 https://github.com/defold/editor2-issues/issues/1124
:::

## 运行时修改模板

代码访问节点只需使用模板 *Id* 作为前缀加上实例节点名即可:
Expand Down
Loading