/bevy_obj

A Wavefront .obj mesh asset loader plugin for the Bevy engine

Primary LanguageRustMIT LicenseMIT

bevy_obj

Crates.io

A Wavefront .obj mesh asset loader plugin for the Bevy engine

Usage:

Major and Minor version number should match bevy version

Add the plugin

use bevy::prelude::*;
use bevy_obj::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugin(ObjPlugin)
        .run();
}

Load an obj file

fn example_startup_system(asset_server: Res<AssetServer>) {
    // Load OBJ file
    let mesh_handle = asset_server.load("example.obj");
}