![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Krasapan |
SceneTree:
┖╴Stage1
┠╴TileMap
┖╴HUD
┖╴MiniMap
I need to clone TileMap
and place it into MiniMap
scene tree
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Krasapan |
SceneTree:
┖╴Stage1
┠╴TileMap
┖╴HUD
┖╴MiniMap
I need to clone TileMap
and place it into MiniMap
scene tree
![]() |
Reply From: | sash-rc |
Literally you need
# Stage1 scope
$HUD/MiniMap.add_child( $TileMap.duplicate() )
However, for minimaps they often use separate Viewport + Camera, or just a Texture (pre-rendered as asset, or automatically assembled).
This one wont clone the script and variables though, if you need that though just tell me.
Merlin1846 | 2021-07-29 20:38