簡體   English   中英

在three.js中調整dat.gui的大小

[英]Resize dat.gui in three.js

我在three.js 中使用dat gui。

不幸的是,我的 gui 非常大,我無法調整它的大小。 我試過autoplace=false

我該如何解決這個問題?

嘗試在構造函數參數中設置寬度以及 autoPlace: false

var gui = new dat.GUI( { autoPlace: false, width: 300 } );

我會使用以下代碼來縮小您的面板:

    function datgui(){
    let gui = new dat.GUI({
        width : 300
    }); 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM