Skip to Content
ExamplesApply Option

Apply Option

import { checkOptionActions, useUtilsEditor } from '@amaspace-editor/editor-3d' const changeOption = () => { const { selectOptionWithRules } = checkOptionActions() const editor = useUtilsEditor() return ( <div style={{ height: '200px', overflowY: 'scroll' }}> {editor?.optionsAMA.map(option => { return ( <div onClick={() => { selectOptionWithRules({ option, onComplete: () => { console.log('@complete') } }) }} > {option.name} </div> ) })} </div> ) }
Last updated on