Selection.activeObject 激活物体

static var activeObject : Object

Description描述

Returns the actual object selection. Includes prefabs, non-modifyable objects.

返回选择的激活的物体。包括预设物,不可改动的物体。

When working with objects that are primarily in a scene, it is strongly recommended to use Selection.activeTransform instead.

当使用场景中的主要物体时,强烈推荐使用Selection.activeTransform来代替。

Page last updated: 2011-4-11
Selection.activeObject 激活物体_unity3d游戏脚本制作教程-游戏蛮牛出品

Selection.activeObject 激活物体

static var activeObject : Object

Description描述

Returns the actual object selection. Includes prefabs, non-modifyable objects.

返回选择的激活的物体。包括预设物,不可改动的物体。

When working with objects that are primarily in a scene, it is strongly recommended to use Selection.activeTransform instead.

当使用场景中的主要物体时,强烈推荐使用Selection.activeTransform来代替。

Page last updated: 2011-4-11