Godot Version 4.2.1
How i can instantiate in the plugin editor
Godot Version 4.2.1
How i can instantiate in the plugin editor
Project → Project Settings → Plugins
I am making the plugin, what i don’t know, is how i can instantiate scenes and how it can works in the editor
It depends on what sort of plugin you are using:
I am making additional docks
OK, that’s way outside of my skill set. I write silly 2D games.
I have a plugin and instantiate scenes lile this:
@tool
extends Node3D
var JoltSpringScene : PackedScene = preload("JoltSpring.tscn")
func _enter_tree():
if Engine.is_editor_hint():
var joltSpringScene = JoltSpringScene.instantiate()
get_parent().add_child(joltSpringScene, true)
joltSpringScene.owner = get_tree().edited_scene_root
queue_free()
pass
func _exit_tree():
# Clean-up of the plugin goes here.
pass
I would recommend searching github for ‘plugin’ (or something more specific) and limit to gdscript.