Skip to content

gstring Format problem #2

Description

@doublejulien

Hi!

I found an issue with gstring.Format and i can't format the way i want

void Update() { using (gstring.Block()) { timeElapsed += Time.deltaTime; ts = TimeSpan.FromSeconds(timeElapsed); myText.text = gstring.Format("{0:D2}:{1:D2}:{2:000}", ts.Minutes, ts.Seconds, ts.Milliseconds).Intern(); } }

The logger throwing the current exception ----> InvalidOperationException: Couldn't find close brace for argument 0

Except that part, its incredible the gain of Garbage i have compared to my previous code!
Btw, is my pseudo code the correct way of using gstring?
Can i use gstring on mobile?

Regards,

J

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions