Explain default behavior of AssetServer in the asset_loading example (#822)

Add clarification for where assets are loaded from in the`asset_loading`example
This commit is contained in:
Amber Kowalski 2020-11-10 18:19:55 -06:00 committed by GitHub
parent a68c217ccf
commit 096ac4aee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,8 @@ fn setup(
meshes: Res<Assets<Mesh>>,
mut materials: ResMut<Assets<StandardMaterial>>,
) {
// You can load individual assets like this:
// By default AssetServer will load assets from inside the "assets" folder
// For example, the next line will load "assets/models/cube/cube.gltf#Mesh0/Primitive0"
let cube_handle = asset_server.load("models/cube/cube.gltf#Mesh0/Primitive0");
let sphere_handle = asset_server.load("models/sphere/sphere.gltf#Mesh0/Primitive0");