我使用three.js editor file中的import功能导入fbx模型为黑色,不知道为什么....
2条回答 默认 最新
Irving_87 2017-08-16 01:57关注// Import
var fileInput = document.createElement( 'input' ); fileInput.type = 'file'; fileInput.addEventListener( 'change', function ( event ) { editor.loader.loadFile( fileInput.files[ 0 ] ); } ); var option = new UI.Row(); option.setClass( 'option' ); option.setTextContent( 'Import' ); option.onClick( function () { fileInput.click(); } ); options.add( option ); // options.add( new UI.HorizontalRule() ); 源代码是这样的解决 无用评论 打赏 举报