This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/addons/awesome_splash/utils_splash.gd

18 lines
381 B
GDScript3
Raw Normal View History

2022-06-18 13:05:48 +02:00
extends Node
func get_current_splash_container():
for node in get_tree().root.get_children():
var container = _find_splash_container_in_node(node)
if container != null:
return container
return null
func _find_splash_container_in_node(node):
if node is SplashContainer:
return node
for child in node.get_children():
return _find_splash_container_in_node(child)