12 lines
479 B
GDScript
12 lines
479 B
GDScript
extends SceneTree
|
|
func _initialize() -> void:
|
|
call_deferred("run")
|
|
func run() -> void:
|
|
for id in ["shotgun","awp","pew"]:
|
|
var model := (load("res://assets/styloo/%s.glb" % id) as PackedScene).instantiate()
|
|
root.add_child(model)
|
|
for mesh: MeshInstance3D in model.find_children("*","MeshInstance3D",true,false):
|
|
print(id," ",mesh.name," transform=",mesh.global_transform," bounds=",mesh.mesh.get_aabb()," surfaces=",mesh.mesh.get_surface_count())
|
|
model.free()
|
|
quit()
|