We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 040cc4a commit b71380fCopy full SHA for b71380f
crates/bevy_mod_scripting_core/src/asset.rs
@@ -225,6 +225,14 @@ pub(crate) fn dispatch_script_asset_events(
225
let script_id = converter(path);
226
227
let language = settings.select_script_language(path);
228
+ if language == Language::Unknown {
229
+ let extension = path
230
+ .path()
231
+ .extension()
232
+ .and_then(|ext| ext.to_str())
233
+ .unwrap_or_default();
234
+ warn!("A script {:?} was added but its language is unknown. Consider adding the {:?} extension to the `ScriptAssetSettings`.", &script_id, extension);
235
+ }
236
let metadata = ScriptMetadata {
237
asset_id: *id,
238
script_id,
0 commit comments