clearContents

Defined in omni/graph/core/bundle/IBundle2.h

omni::core::Result clearContents(bool bundleMetadata = true, bool attributes = true, bool childBundles = true) noexcept

Remove all attributes, child bundles and metadata from this bundle, but keep the bundle itself.

Parameters
  • bundleMetadata – Clears bundle metadata in this bundle.

  • attributes – Clears attributes in this bundle.

  • childBundles – Clears child bundles in this bundle.

Returns

Success if executed successfully, Fail for unsuccessful execution, InvalidArgument if arguments are invalid.