I'm using a dat gui in three.js.
Unfortunately my gui is very very big, and I cant't resize it. I tried with autoplace=false
.
How can I resolve this problem?
尝试在构造函数参数中设置宽度以及 autoPlace: false
var gui = new dat.GUI( { autoPlace: false, width: 300 } );
I would use the following code to shrink your panel:
function datgui(){
let gui = new dat.GUI({
width : 300
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.