Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bevy_asset_preview and bevy_marketplace_viewer crates #39

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/bevy_asset_preview/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "bevy_asset_preview"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy.workspace = true
14 changes: 14 additions & 0 deletions crates/bevy_asset_preview/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use bevy::prelude::*;

/// This crate is a work in progress and is not yet ready for use.
/// The intention is to provide a way to load/render/unload assets in the background and provide previews of them in the Bevy Editor.
/// For 2d assets this will be a simple sprite, for 3d assets this will require a quick render of the asset at a low resolution, just enough for a user to be able to tell quickly what it is.
/// This code may be reused for the Bevy Marketplace Viewer to provide previews of assets and plugins.
/// So long as the assets are unchanged, the previews will be cached and will not need to be re-rendered.
/// In theory this can be done passively in the background, and the previews will be ready when the user needs them.

pub struct AssetPreviewPlugin;
#[allow(unused_variables)]
impl Plugin for AssetPreviewPlugin {
fn build(&self, _app: &mut App) {}
}
7 changes: 7 additions & 0 deletions crates/bevy_marketplace_viewer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "bevy_marketplace_viewer"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy.workspace = true
16 changes: 16 additions & 0 deletions crates/bevy_marketplace_viewer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use bevy::prelude::*;

/// A Viewer for the Future Bevy Marketplace, a place where you can find Bevy plugins and assets that members of the community have created.
/// This crate is a work in progress and is not yet ready for use.
/// The intention is to provide a way to browse the marketplace and install plugins and assets directly from the Bevy Editor.
/// Particularly, this crate will connect to the Bevy Marketplace API to fetch the latest plugins and assets, and provide previews, overviews, and (If any) prices of them.
/// If the crate is present in the editor (aka not been removed, or disabled).
/// The crate will pass this data to the asset browser crate to be displayed in the Bevy Editor.
/// The UI/UX of the content will live in the asset browser crate, and this crate will only be responsible for fetching the data.
/// As a security measure purchasing of assets/plugins will be done through the Bevy Marketplace website.

pub struct MarketplaceViewerPlugin;
#[allow(unused_variables)]
impl Plugin for MarketplaceViewerPlugin {
fn build(&self, _app: &mut App) {}
}