public static bool Contains (int instanceID);
public static bool Contains (Object obj);

Description

返回某个对象是否包含在当前选择中。


    if (Selection.Contains (gameObject))
        Debug.Log ("I'm selected!");