function unity_webgl_full_shortcode($atts) { $atts = shortcode_atts(array( 'id' => 'unityContainer', 'width' => '960px', 'height' => '600px', 'build_url' => '', // URL completo della cartella Build 'loader' => 'w3.loader.js', 'callback' => '' // Nome della funzione JS da chiamare dopo il caricamento ), $atts, 'unity_webgl_full'); if(empty($atts['build_url'])) return 'Errore: build_url non specificato.'; $html = '