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

Problem with script (MouseScript js)

Discussion in 'Scripting' started by ganon, Sep 12, 2009.

  1. ganon

    ganon

    Joined:
    Mar 20, 2009
    Posts:
    22
    Hi all, i have a problem when try to apply a script js(with OnMouse function an draggin) on 3dmmax imported object. I try to move a objet with my mouse but nothing happens. If i apply my script with a primitive object like a cube, all works.

    Please need help, how can i resolve this problem?


    Sorry my bad english

    reference script: http://ethicalgames.wordpress.com/2...evelopers-tutorial-4-basic-mouse-interaction/
     
  2. GargerathSunman

    GargerathSunman

    Joined:
    May 1, 2008
    Posts:
    1,571
    You probably haven't added a collider to the object from 3DS. Also, in order to guarantee it'll register your clicks, you're probably best off with giving it a basic collider type like box or sphere, not mesh.