Search Unity

get the order of selection

Discussion in 'Scripting' started by cram, Jun 23, 2012.

  1. cram

    cram

    Joined:
    Jan 8, 2012
    Posts:
    21
    I've searched the forum already for this topic, but it seems that there's just no way.
    Is it possible to get the order of selection, when i select multiple objects in the hierarchy?

    when i use Selection.transform or Selection.object, it just get me some random order of the selection....

    according to the docs i can only get the active object of a selection.
     
  2. cat_ninja

    cat_ninja

    Joined:
    Jul 14, 2010
    Posts:
    197
    When you select something you can give it an ID then just look at the variable
     
unityunity