mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
18d001d27c
# Objective Fixes #10439 `Timer::percent()` and `Timer::percent_left()` return values in the range of 0.0 to 1.0, even though their names contain "percent". These functions should be renamed for clarity. ## Solution - Rename `Timer::percent()` to `Timer::fraction()` - Rename `Timer::percent_left()` to `Timer::fraction_remaining()` --- ## Changelog ### Changed - Renamed `Timer::percent()` to `Timer::fraction()` - Renamed `Timer::percent_left()` to `Timer::fraction_remaining()` ## Migration Guide - `Timer::percent()` has been renamed to `Timer::fraction()` - `Timer::percent_left()` has been renamed to `Timer::fraction_remaining()` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
Bevy Time
The built-in timekeeping plugin for the Bevy game engine.