Search Unity

Hearthstone-like drag & drop mechanics

Discussion in 'Scripting' started by Eruheran4, Mar 25, 2016.

  1. Eruheran4

    Eruheran4

    Joined:
    Jan 6, 2013
    Posts:
    19
    Hey guys!

    EDIT:
    In fact I'm looking for an event like "OnHierachyChange" to fire a function, that reorders my objects in relation to their SiblingIndex. Does such an event exist?

    I've got 2 questions:

    1.
    I'm looking for a way, to align and to choose where to position 3d objects horizontaly. I could already realise the mechanic with the Unity UI / Hoirontally Layout Grid. Now its the question, how to realise it in 3D?
    I tried to combine 3D with the Unity UI, like replacing the UI Images with 3D models. But this didn't work at all.

    2.
    How do I imitate a hearthstone-like / reallife-paper moving animation? Could this be don with Rigidbody?

    You can see both mechanics in the begining of this video:


    Thank you in advance!
    Eruheran
     
    Last edited: Mar 25, 2016