Search Unity

structure/tweak an Unity 2 XML script

Discussion in 'Scripting' started by Krodil, Mar 16, 2011.

  1. Krodil

    Krodil

    Joined:
    Jun 30, 2010
    Posts:
    141
    Hey,

    I have problems in tweaking an Unity2XML process.
    The case is, that I want to log x,y pos of an object/camera per every 0.5 seconds and write it into a file for later data translation.
    I have borrowed the the .js script here

    The script works fine, and I end up with an xml file with one set of coordinates.
    Any pointers on how to add more coordinates? or how to tweak the script into using other types of data?