2018년 7월 25일 수요일

godot memory management

Lifetimes is not too complicated in GDScript, it just depends of the type:

Object Must be freed manually by calling free.
Reference: Freed automatically when the reference count reaches 0.
Node:
Inside the scene tree: Freed automatically by the parent. Optionally with queue_free.
Not inside the scene tree (very rarely the case...): Same as Object. Must be freed manually by calling free.

https://github.com/godotengine/godot/issues/8985

댓글 없음:

댓글 쓰기

niri / debian / flatpak unable to open save dialog

  Create or edit your portal override config at ~/.config/xdg-desktop-portal/niri-portals.conf (or globally at /usr/share/xdg-desktop-porta...