add_material_list_item#

omni.kit.material.library.add_material_list_item(
name: str,
on_call_fn: callable,
refresh: bool = True,
)#

Add custom material, this will also get added to context menu Create menu.

Parameters:
  • name (str) – Material name.

  • on_call_fn (callable) – Material created callback.

  • refresh (bool) – Refresh UI Flag.