Skip to content

Commit

Permalink
Show 10 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Sep 5, 2024
1 parent 08168b2 commit ede9f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/ExampleScripts/ShowFeaturedExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/// <summary>
/// Example that shows the top 5 featured models.
///
///
/// This example requests the list of featured assets from Poly. Then it imports the top 5
/// into the scene, side by side.
/// </summary>
Expand Down Expand Up @@ -75,7 +75,7 @@ private void ListAssetsCallback(PolyStatusOr<PolyListAssetsResult> result) {

// Now let's get the first 5 featured assets and put them on the scene.
List<PolyAsset> assetsInUse = new List<PolyAsset>();
for (int i = 0; i < Mathf.Min(5, result.Value.assets.Count); i++) {
for (int i = 0; i < Mathf.Min(10, result.Value.assets.Count); i++) {
// Import this asset.
PolyApi.Import(result.Value.assets[i], options, ImportAssetCallback);
assetsInUse.Add(result.Value.assets[i]);
Expand Down

0 comments on commit ede9f41

Please sign in to comment.