From bd9bab9f98b75c58d7c63a6df98033d3156bf23f Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Thu, 2 Nov 2023 17:16:37 -0700 Subject: [PATCH] 0.12: TypePath migration --- content/news/2023-10-21-bevy-0.12/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/news/2023-10-21-bevy-0.12/index.md b/content/news/2023-10-21-bevy-0.12/index.md index 840eaa010f..254d0ae8c4 100644 --- a/content/news/2023-10-21-bevy-0.12/index.md +++ b/content/news/2023-10-21-bevy-0.12/index.md @@ -1277,6 +1277,17 @@ The bevymark example needed to be improved to enable benchmarking the batching / This allows benchmarking of different situations for batching / instancing in the next section. +## TypePath Migration + +
authors: @soqb
+ +As a followup to the introduction of [Stable TypePath](/news/bevy-0-11/#stable-typepath) in **Bevy 0.11**, Bevy Reflect now uses [`TypePath`] instead of [`type_name`]. A reflected type's [`TypePath`] is now accessible via [`TypeInfo`] and [`DynamicTypePath`] and [`type_name`] methods have been removed. + +[`TypeInfo`]: https://dev-docs.bevyengine.org/bevy/reflect/enum.TypeInfo.html +[`TypePath`]: https://dev-docs.bevyengine.org/bevy/reflect/trait.TypePath.html +[`DynamicTypePath`]: https://dev-docs.bevyengine.org/bevy/reflect/trait.DynamicTypePath.html +[`type_name`]: https://doc.rust-lang.org/std/any/fn.type_name.html + ## What's Next? We have plenty of work in progress! Some of this will likely land in **Bevy 0.13**.