 b04947d44f
			
		
	
	
		b04947d44f
		
			
		
	
	
	
	
		
			
			The first step in the migration to required components! This PR removes `GlobalTransform` from all user-facing code, since it's now added automatically wherever `Transform` is used. ## Testing - None of the examples I tested were broken, and I assume breaking transforms in any way would be visible *everywhere* --- ## Changelog - Make `Transform` require `GlobalTransform` ~~- Remove `GlobalTransform` from all engine bundles~~ - Remove in-engine insertions of GlobalTransform and TransformBundle - Deprecate `TransformBundle` - update docs to reflect changes ## Migration Guide Replace all insertions of `GlobalTransform` and/or `TransformBundle` with `Transform` alone. --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Tim <JustTheCoolDude@gmail.com>
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![doc = include_str!("../README.md")]
 | |
| #![cfg_attr(docsrs, feature(doc_auto_cfg))]
 | |
| #![doc(
 | |
|     html_logo_url = "https://bevyengine.org/assets/icon.png",
 | |
|     html_favicon_url = "https://bevyengine.org/assets/icon.png"
 | |
| )]
 | |
| 
 | |
| #[cfg(feature = "bevy-support")]
 | |
| pub mod commands;
 | |
| /// The basic components of the transform crate
 | |
| pub mod components;
 | |
| 
 | |
| /// Transform related bundles
 | |
| #[cfg(feature = "bevy-support")]
 | |
| pub mod bundles;
 | |
| 
 | |
| /// Transform related traits
 | |
| pub mod traits;
 | |
| 
 | |
| /// Transform related plugins
 | |
| #[cfg(feature = "bevy-support")]
 | |
| pub mod plugins;
 | |
| 
 | |
| /// [`GlobalTransform`]: components::GlobalTransform
 | |
| /// Helpers related to computing global transforms
 | |
| #[cfg(feature = "bevy-support")]
 | |
| pub mod helper;
 | |
| /// Systems responsible for transform propagation
 | |
| #[cfg(feature = "bevy-support")]
 | |
| pub mod systems;
 | |
| 
 | |
| /// The transform prelude.
 | |
| ///
 | |
| /// This includes the most common types in this crate, re-exported for your convenience.
 | |
| #[doc(hidden)]
 | |
| #[expect(deprecated)]
 | |
| pub mod prelude {
 | |
|     #[doc(hidden)]
 | |
|     pub use crate::components::*;
 | |
| 
 | |
|     #[cfg(feature = "bevy-support")]
 | |
|     #[doc(hidden)]
 | |
|     pub use crate::{
 | |
|         bundles::TransformBundle,
 | |
|         commands::BuildChildrenTransformExt,
 | |
|         helper::TransformHelper,
 | |
|         plugins::{TransformPlugin, TransformSystem},
 | |
|         traits::TransformPoint,
 | |
|     };
 | |
| }
 | |
| 
 | |
| #[cfg(feature = "bevy-support")]
 | |
| pub use prelude::{TransformPlugin, TransformPoint, TransformSystem};
 |