has_delegate_func

omni.kit.menu.utils.builder_utils.has_delegate_func(delegate, func_name)

Checks if delegate class has func_name function.

Parameters
  • delegate (object) – The delegate object to check.

  • func_name (str) – The name of the function to look for.

Returns

True if the delegate has a callable function with the given name, otherwise False.

Return type

bool