Godot Engine使い方メモ #92
AheadGameStudio
started this conversation in
General
Replies: 3 comments
-
シグナルの接続の種類 func _ready():
var flag:int = CONNECT_DEFERRED
body_entered.connect(_on_body_entered, flag)
# または…
connect("body_entered", Callable(self, "_on_body_entered", flag)) フラグを入れるといろんな挙動ができる。
|
Beta Was this translation helpful? Give feedback.
0 replies
-
行末にバックスラッシュか、カッコでブロックにする |
Beta Was this translation helpful? Give feedback.
0 replies
-
4.0のウィンドウの使い方 extends Node
var window:Window
func _ready():
get_window().gui_embed_subwindows = false
window = Window.new()
window.add_child(ColorRect.new())
add_child(window)
window.popup_centered(Vector2i(300,300))
閉じるボタンはデフォルトでは無効なので自前の実装が必要となる。(最小化・最大化はできる) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
逆引きリファレンスを作るにあたって、細かく記事にしにくいので、
ちょっとしたメモは全部このスレッドに記載していく。
Beta Was this translation helpful? Give feedback.
All reactions