![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | fisox.zero |
lets say show inventory scene in the canvas layer
with a script or doing it in editor?
volzhs | 2018-06-14 20:36
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | fisox.zero |
lets say show inventory scene in the canvas layer
with a script or doing it in editor?
volzhs | 2018-06-14 20:36
![]() |
Reply From: | duke_meister |
I do something like this (I use C#).
var inventoryScene = (PackedScene)ResourceLoader.Load("res://Inventory.tscn");
var inventory = inventoryScene.Instance();
var nodeToLoadInto = GetNode("SomeNode");
nodeToLoadInto.AddChild( inventory);
I’m not sure about the canvas part of your question though.
oh so you use add child() got it! not long ago i was learning about this subject.
fisox.zero | 2018-06-16 07:58