Selection.Contains 包含

static function Contains (instanceID : int) : bool
static function Contains (obj : Object) : bool

Description描述

Returns whether an object is contained in the current selection.

返回一个物体是否被包含在当前的选择中。

if (Selection.Contains (gameObject))
	Debug.Log ("I'm selected!");
Page last updated: 2011-4-11