Skip to content

Commit

Permalink
Explain default behavior of AssetServer in the asset_loading example (#…
Browse files Browse the repository at this point in the history
…822)

Add clarification for where assets are loaded from in the`asset_loading`example
  • Loading branch information
ambeeeeee committed Nov 11, 2020
1 parent a68c217 commit 096ac4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/asset/asset_loading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 096ac4a

Please sign in to comment.