Protected
_dirtyProtected
Optional
_viewerProtected
_viewerApply all variations(by selected index or first item) when a config is loaded
Static
Optional
Readonly
OldStatic
Readonly
PluginProtected
_onProtected
_postProtected
_refreshProtected
_selectedProtected
_storeOptional
meta: anyOptional
setGenerated using TypeDoc
Switch Node Plugin (Basic UI) This plugin allows you to configure object variations in a file and apply them in the scene. Each SwitchNode is a parent object with multiple direct children. Only one child is visible at a time. This works by toggling the
visible
property of the children of a parent object. The plugin interfaces with the picking plugin and also provides uiConfig to show and edit the variations. It also provides a function to create snapshot previews of individual variations. This creates a limited render of the object with the selected child visible. To get a proper render, its better to render it offline and set the image as a preview. This functionality is inherited fromSwitchNodeBasePlugin
.Additionally this plugin adds a Grid UI using GridItemListPlugin in the DOM over the viewer canvas to show various object variations and allow the user to select them. The UI can also be used in the editor to edit the variations and apply them.