Creates a list of build sources directly from the current geometry in the specified editor stage. (UnityEditor)
The collection can be controlled in terms of layers, type of geometry and by collecting either by hierarchy or volume.
The stageProxy
parameter is used for picking objects from either the main stage or the stage of a prefab opened for editing.
At runtime that parameter is ignored since objects can only be part of the main scenes.
All main scenes are part of the same main stage while prefab scenes are each assigned to its own separate prefab stage.
includedWorldBounds | 查询的对象必须重叠这些边界才能包含在结果中。 |
includedLayerMask | 指定哪些层包含在查询中。 |
geometry | 要收集的几何形状类型 - 例如物理碰撞体。 |
defaultArea | 分配给结果的区域类型,除非被 NavMeshMarkup 修改。 |
markups | 允许更精确地控制对象收集方式的标记列表。 |
stageProxy | Results are selected only from the stage to which this scene belongs. |
results | 存储结果的列表,该列表会在调用开始时被清除。 |
Collects renderers or physics colliders, and terrains within a volume. (UnityEditor)
root | 如果不为 null,则仅考虑查询中的根及其子项;如果为 null,则包括加载的所有项。 |
includedLayerMask | 指定哪些层包含在查询中。 |
geometry | 要收集的几何形状类型 - 例如物理碰撞体。 |
defaultArea | 分配给结果的区域类型,除非被 NavMeshMarkup 修改。 |
markups | 允许更精确地控制对象收集方式的标记列表。 |
stageProxy | Results are selected only from the stage to which this scene belongs. |
results | 存储结果的列表,该列表会在调用开始时被清除。 |
Collects renderers or physics colliders, and terrains within a transform hierarchy. (UnityEditor)