MrGVSV / bevy_proto

Create config files for entities in Bevy
Other
239 stars 25 forks source link

Add more `Schematics`! #33

Closed MrGVSV closed 1 year ago

MrGVSV commented 1 year ago

This PR adds Schematic implementations for more Bevy components and bundles.

Full changelog #### Components ##### Existing - `Name` - `Visibility` - `Sprite` - `Transform` - `GlobalTransform` - `Window` - `PrimaryWindow` - `Handle` ##### Added - `BloomSettings` - `Camera2d` - `Camera3d` - `DebandDither` - `DepthPrepass` - `Fxaa` - `NormalPrepass` - `Tonemapping` - `GltfExtras` - `AlphaMode` - `CascadeShadowConfig` - `ClusterConfig` - `DirectionalLight` - `EnvironmentMapLight` - `FogSettings` - `NotShadowCaster` - `NotShadowReceiver` - `PointLight` - `SpotLight` - `Wireframe` - `Aabb` - `Camera` - `CameraRenderGraph` - `ColorGrading` - `OrthographicProjection` - `PerspectiveProjection` - `Projection` - `RenderLayers` - `SkinnedMesh` - `Anchor` - `Mesh2dHandle` - `TextureAtlasSprite` - `Text` - `Text2dBounds` - `BackgroundColor` - `Button` - `CalculatedClip` - `CalculatedSize` - `FocusPolicy` - `Interaction` - `Label` - `Node` - `RelativeCursorPosition` - `Style` - `UiImage` #### Bundles > **Note** > All bundles are custom structs located in `bevy_proto::custom`. These will resolve to the actual bundles, but they need to be used since almost every Bevy bundle does not implement `Reflect`. ##### Existing - `TransformBundle` - `VisibilityBundle` - `SpriteBundle` ##### Added - `Camera2dBundle` - `Camera3dBundle` - `DirectionalLightBundle` - `PointLightBundle` - `SpotLightBundle` - `MaterialMeshBundle` (aka `PbrBundle`) - `SpatialBundle` - `DynamicSceneBundle` - `SceneBundle` - `SpriteSheetBundle` - `MaterialMesh2dBundle` (aka `ColorMesh2dBundle`) - `Text2dBundle` - `ButtonBundle` - `ImageBundle` - `NodeBundle` - `TextBundle`

This PR also adds a new example: bevy_ui. This is just a remake of Bevy's ui example, but using prototypes.