NEOLearn

Asset examples

The engine's asset examples: what each one shows, whether it runs in a browser and the command that runs it.

Updated October 20, 2026

On this page

Loading assets, asset events, custom assets and loaders, asset sources, saving and processing. There are 18 examples on this page. For the concepts behind them, see Assets.

Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.

Examples#

ExampleWhat it showsWebRun
Alter MeshShows how to modify the underlying asset of a Mesh after spawning.Nocargo run --example alter_mesh
Alter SpriteShows how to modify texture assets after spawning.Nocargo run --example alter_sprite
Asset DecompressionDemonstrates loading a compressed assetNocargo run --example asset_decompression
Asset LoadingDemonstrates various methods to load assetsNocargo run --example asset_loading
Asset ProcessingDemonstrates how to process and load custom assetsNocargo run --example asset_processing --features file_watcher,asset_processor
Asset SavingDemonstrates how to save an assetYescargo run --example asset_saving --features ui_picking,sprite_picking,png
Asset Saving with SubassetsDemonstrates how to save an asset with subassetsYescargo run --example asset_saving_with_subassets --features ui_picking,sprite_picking
Asset SettingsDemonstrates various methods of applying settings when loading an assetNocargo run --example asset_settings
Compressed Image SaverDemonstrates compressing textures and generating mipmaps using CompressedImageSaverNocargo run --example compressed_image_saver --features compressed_image_saver,asset_processor,jpeg
Custom AssetImplements a custom asset, with a default loaderYescargo run --example custom_asset
Custom Asset IOImplements a custom AssetReaderNocargo run --example custom_asset_reader
Custom Asset LoaderImplements a custom asset loaderYescargo run --example custom_asset_loader
Embedded AssetEmbed an asset in the application binary and load itYescargo run --example embedded_asset
Extra Asset SourceLoad an asset from a non-standard asset sourceNocargo run --example extra_asset_source
Generated AssetsShows how to generate and store assets at runtimeYescargo run --example generated_assets
Hot Reloading of AssetsDemonstrates automatic reloading of assets when modified on diskNocargo run --example hot_asset_reloading --features file_watcher
Multi-asset synchronizationDemonstrates how to wait for multiple assets to be loaded.Yescargo run --example multi_asset_sync
Repeated texture configurationHow to configure the texture to repeat instead of the default clamp to edgesYescargo run --example repeated_texture

See also#