Ategon@programming.devM to Godot@programming.dev · 9 days agoDaily Godot Tip #22: The replace_by function can be used if you need to replace a certain node with another while keeping all children within the sceneprogramming.devimagemessage-square5fedilinkarrow-up165arrow-down10file-text
arrow-up165arrow-down1imageDaily Godot Tip #22: The replace_by function can be used if you need to replace a certain node with another while keeping all children within the sceneprogramming.devAtegon@programming.devM to Godot@programming.dev · 9 days agomessage-square5fedilinkfile-text
If you do this remember to free the old one (or have some way of accessing it) since the engine won’t do it for you
minus-squareinsomniac_lemon@lemmy.cafelinkfedilinkEnglisharrow-up1·9 days agoUsing nodes to compose art (or even component-based code?) would be my guess. Though sure, for many scenarios/designs a node swap wouldn’t be needed.
Using nodes to compose art (or even component-based code?) would be my guess. Though sure, for many scenarios/designs a node swap wouldn’t be needed.