Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FormatLengthInSeconds(float)

Formats a given float duration as a string in the format "X.XXX s".
Read time 1 minuteLast updated 13 days ago

Definition

public static string FormatLengthInSeconds(float length)

Parameters

length

Length value to format.

Returns

Type

Description

stringA string representation of the input value as a duration in seconds.