Search Unity

Unable to click gameObjects from Alembic animations

Discussion in 'Physics' started by scottnc27603, Jul 5, 2019.

  1. scottnc27603

    scottnc27603

    Joined:
    Jul 20, 2014
    Posts:
    3
    I have several alembic animations, and I want to trigger the animation when the object is clicked on. I've tried adding an OnMouseDown, and I've also tried the RayCast. Both are failing. I've added a mesh collider to the correct visible mesh, but it seems like the meshes for the alembic animations are not a part of the scene searched for clicks or raycast hits. I've also tried to pull out a copy of the mesh from the alembic animation and create a static mesh, but the same problem is persisting. Does anyone have any suggestions? Ideas? Run into this and found a work around?

    Scott
     
  2. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    Thanks for your message.
    There is nothing special about the alembic GOs, apart from the fact that their position/vertices get updated by a special component.
    Are you able to test your code with Cubes animated by timelines ? (Just to make sure it's an alembic weirdness,,,)