Creates a new Visibility property for use on a Node.
Disables and removes the extension from the Document.
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.
Lists all ExtensionProperty instances associated with, or created by, this extension. Includes only instances that are attached to the Document's graph; detached instances will be excluded.
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.
Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.
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);