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

How does this Unity Polyline Editor Work (from Unity3D Wiki Site)

Discussion in 'Scripting' started by FranklyMyDear, Sep 4, 2012.

  1. FranklyMyDear

    FranklyMyDear

    Joined:
    Aug 2, 2012
    Posts:
    52
    Hello all

    I am looking for a solution that may allow me to draw a path and get a cube to move and rotate as it follows the path
    It looks like iTween isn't going to work for me this time, or at least not without pulling my hair out

    So i stumbled upon a PolyLine Editor that may work, but there is little or no instruction telling me how it works

    It is here
    http://wiki.unity3d.com/index.php/PolyLineEditor

    Can anyone enlighten me as to how i apply it, it just says "Add the following class in an Editor director"

    Thanks
    Michael
     
  2. FranklyMyDear

    FranklyMyDear

    Joined:
    Aug 2, 2012
    Posts:
    52
    Sorry, I'm a bit stuck with this
    Can anyone help

    Thanks
     
  3. FranklyMyDear

    FranklyMyDear

    Joined:
    Aug 2, 2012
    Posts:
    52
    I have copied it to a C# script but get the error below before i even do anything with it

    Assets/Scripts/PolyLineEditor.cs(46,17):
    error CS0246: The type or namespace name `PolyLine' could not be found. Are you missing a using directive or an assembly reference?