KHRNodeVisibility

  • experimental

KHR_node_visibility defines visibility of a Node and its descendants.

Properties:

Example

import { KHRNodeVisibility, Visibility } from '@gltf-transform/extensions';

// Create an Extension attached to the Document.
const visibilityExtension = document.createExtension(KHRNodeVisibility);

// Create Visibility property.
const visibility = visibilityExtension.createVisibility().setVisible(false);

// Assign to a Node.
node.setExtension('KHR_node_visibility', visibility);

Hierarchy

Static properties

EXTENSION_NAME: typeof KHR_NODE_VISIBILITY

Properties

extensionName: typeof KHR_NODE_VISIBILITY

Methods

  • dispose(): void
  • isRequired(): boolean
  • Indicates to the client whether it is OK to load the asset when this extension is not recognized. Optional extensions are generally preferred, if there is not a good reason to require a client to completely fail when an extension isn't known.

  • listProperties(): ExtensionProperty[]
  • Indicates to the client whether it is OK to load the asset when this extension is not recognized. Optional extensions are generally preferred, if there is not a good reason to require a client to completely fail when an extension isn't known.

Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.