Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+1)

When importing the mod, it kind of works but I ran into another issue... The main/root scene gui is imported correctly but all the child scenes are out of the layout and I can't find a way to fix it.

Here's a screenshot with some comments:

Here's the very basic code:

extends Node
func _ready() -> void:
    # adding label by code
    var mod_label = Label.new()
    mod_label.text = "Root Runtime label:"
    get_meta("ui_node").add_child(mod_label)
    # adding the mod to HS
    var ui_mod_container = get_meta("ui_node")
    var ui_mod_node = $VBoxContainer
    remove_child(ui_mod_node)
    ui_mod_container.add_child(ui_mod_node)

Here's how it's structured:

Is it something that I'm doing wrong or...? Any help's welcome :)


EDIT

I'm also getting this message in the console when importing the mod:

WARNING: res://CUSTOM_DATA/modsdev/RootTest.mod.tscn:3 - ext_resource, invalid UID: uid://db0oem1hjj223 - using text path instead: res://CUSTOM_DATA/modsdev/ChildTest1.tscn