How to make editor plugin in godot

  • 锁定node编辑状态

node.set_meta("_edit_lock_", true) 

node.set_meta("_edit_lock_", null)   


  • spatial Gizmo plugin

Final result:

  • 获取当前编辑场景的文件路径
get_tree().edited_scene_root.filename

Comments

Popular posts from this blog

折衷主义建筑

Godot PBD仿真

关于2d游戏中敌人的接触伤害