當成場景儲存: 物件右鍵選擇 Save branch as scene
4.x 才有支援
單執行緒:
Project setting -> Physics -> 3D -> 不勾選 Run on Separate Thread
多執行緒:
Using multiple threads
物件階層:
物件階層:
Project setting -> Run -> Main Loop Type -> 設定 class name
在沒有 script 編譯錯誤的情況下, 可能是循環呼而叫導致無窮迴圈
可能的原因:
Parse Error: Using own name in class file is not allowed (create a cyclic reference)
禁止在 class 內呼叫到自己的建構子
class OOO is already being loaded. Cyclic reference
目前已知 class 內含的 static function 呼叫到自定義 class 會造成問題
移除 class_name 和 static 關鍵字
改從 Project setting -> AutoLoad -> 設定成 singleton class
目前已存在的相關討論, 大多都跟場景載入相關…但此範例只有單場景
int 在二進制的最大位元是用來表示正負號, 0=正, 1=負
JS 的 >>> 進行 bit 位移之後, 原本在最大位元的負號會變成 0, 數值會變成正數
而 >> 在位移之後, 原本最大位元是負號則會補 1
Project setting -> Network -> Limit
調整 Max Chars Per Second 的上限
使用 FuncRef
透過 set() 更新
屬性名稱需要存在於 class, 如果不存在則不會有任何作用
參考來源
查看 URL parameters 為例
godot