Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Quaternion. Parse(), Vector3.Parse() ?

Discussion in 'Scripting' started by llavigne, Apr 22, 2008.

  1. llavigne

    llavigne

    Joined:
    Dec 27, 2007
    Posts:
    977
    I am some ways before all that php and js piping is ready to run so I haven't tried this yet. It seems Vector3 and other unity classes do have a Parse() function, since it's not documented I wanted to know if it worked.

    Also how does .ToString() and Parse() deal with localization ?

    Thanks.
     
  2. Marc

    Marc

    Joined:
    Oct 4, 2007
    Posts:
    499
    My bet is it does not, but then again how often are numbers different when localized?
     
  3. llavigne

    llavigne

    Joined:
    Dec 27, 2007
    Posts:
    977
    us: 0.5
    france: 0,5
     
  4. Marc

    Marc

    Joined:
    Oct 4, 2007
    Posts:
    499
    That is only the string representation.
     
  5. llavigne

    llavigne

    Joined:
    Dec 27, 2007
    Posts:
    977
    Vector3.Parse() doesn't exist...
    Funny how some times the compiler doesn't complain.