AssetDatabase.IsMainAsset 是否主资源

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

Description描述

Is asset a main asset in the project window?

该资源在Project窗口中是不是主资源?

For example an imported model has a game object as its root and several Meshes and child game objects in expanded state. The root game object is the main asset in this case.

例如导入的模型有一个游戏物体做为它的根物体以及几个网格和扩充的子物体。在这个例子中根物体就是主资源。

Page last updated: 2011-5-31