文档

Unity Engine

Unity Engine

GetRenderersHiddenResultBits

Gets the scene visibility status of renderers.
阅读时间1 分钟最后更新于 1 个月前

Definition

GetRenderersHiddenResultBits(ReadOnlySpan<int>, Span<ulong>)

Gets the scene visibility status of renderers.
警告
Removed. GetRenderersHiddenResultBits(ReadOnlySpan\<int\>) is obsolete. Use GetRenderersHiddenResultBits(ReadOnlySpan\<EntityId\>) instead.
public static void GetRenderersHiddenResultBits(ReadOnlySpan<int> rendererIDs, Span<ulong> resultBits)

Parameters

The span of renderer instance IDs to check.

resultBits

The span of visibility statuses the method returns. If a bit is set to one, the corresponding renderer in the
rendererIDs
parameter is not visible in the scene view. The length of the span must be
(rendererIDs.Length + 63) / 64
. Otherwise an exception will be thrown.

Remarks

Refer to SceneVisibility for more information about scene visibility.

GetRenderersHiddenResultBits(ReadOnlySpan<EntityId>, Span<ulong>)

Gets the scene visibility status of renderers.
public static void GetRenderersHiddenResultBits(ReadOnlySpan<EntityId> rendererIDs, Span<ulong> resultBits)

Parameters

The span of renderer instance IDs to check.

resultBits

The span of visibility statuses the method returns. If a bit is set to one, the corresponding renderer in the
rendererIDs
parameter is not visible in the scene view. The length of the span must be
(rendererIDs.Length + 63) / 64
. Otherwise an exception will be thrown.

Remarks

Refer to SceneVisibility for more information about scene visibility.