mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
8f721d8d0a
# Summary This method strips a long type name like `bevy::render:📷:PerspectiveCameraBundle` down into the bare type name (`PerspectiveCameraBundle`). This is generally useful utility method, needed by #4299 and #5121. As a result: - This method was moved to `bevy_utils` for easier reuse. - The legibility and robustness of this method has been significantly improved. - Harder test cases have been added. This change was split out of #4299 to unblock it and make merging / reviewing the rest of those changes easier. ## Changelog - added `bevy_utils::get_short_name`, which strips the path from a type name for convenient display. - removed the `TypeRegistry::get_short_name` method. Use the function in `bevy_utils` instead. |
||
---|---|---|
.. | ||
build-example-pages | ||
build-wasm-example | ||
ci | ||
spancmp | ||
example_showcase.sh | ||
publish.sh |