Version: 2023.1

PrefabUtility.GetAddedGameObjects

切换到手册
public static List<AddedGameObject> GetAddedGameObjects (GameObject prefabInstance);

参数

prefabInstance 要了解其相关信息的预制件实例。

返回

List<AddedGameObject> 对象的列表,其中包含有关已添加游戏对象的信息。

描述

Retrieves a list of PrefabUtility.AddedGameObject objects which contain information about added GameObjects on the Prefab instance.