pub struct Time;Expand description
Accessors for selected UnityEngine.Time properties.
Implementations§
Source§impl Time
impl Time
Sourcepub fn get_delta_time() -> f32
pub fn get_delta_time() -> f32
The time in seconds it took to complete the last frame (Read Only)
Sourcepub fn get_fixed_delta_time() -> f32
pub fn get_fixed_delta_time() -> f32
The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour’s FixedUpdate) are performed.
Sourcepub fn get_time_scale() -> f32
pub fn get_time_scale() -> f32
The scale at which time passes. This can be used for slow motion effects.
Sourcepub fn set_time_scale(value: f32)
pub fn set_time_scale(value: f32)
Sets the scale at which time passes.
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnsafeUnpin for Time
impl UnwindSafe for Time
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more