文档

Unity Engine

Unity Engine

UnregisterRenderPickingCallback(RenderPickingCallback)

Unregisters the callback that was previously registered for custom picking rendering. The method throws InvalidOperationException if you try to call it inside render picking callbacks.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool UnregisterRenderPickingCallback(HandleUtility.RenderPickingCallback renderPickingCallback)

Parameters

renderPickingCallback

The delegate object to unregister from the callback.

Returns

Type

Description

boolTrue if the unregistration succeeds. False if the callback is not registered.

Remarks

Additional Resources: RegisterRenderPickingCallback.