-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Godot project and wwise.gd addon script
This commit updates the wwise.gd addon script, wrapping up the integration of recent codebase changes by removing the ported plugins from GDScript. Currently, the only editor plugin still added to the Editor via GDScript is the EditorExportPlugin. This will resolved as soon as a related bug (godotengine/godot#80593) is fixed.
- Loading branch information
1 parent
aa0145d
commit 7fd0483
Showing
4 changed files
with
6 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
@tool | ||
extends EditorPlugin | ||
|
||
var editor_plugin: EditorPlugin | ||
var initialized: bool = false | ||
|
||
var build_export_plugin: EditorExportPlugin | ||
|
||
func _enter_tree(): | ||
if !ProjectSettings.has_setting("autoload/WwiseRuntimeManager"): | ||
add_autoload_singleton( | ||
"WwiseRuntimeManager", "res://addons/Wwise/runtime/wwise_runtime_manager.gd" | ||
) | ||
|
||
if Engine.is_editor_hint() && !initialized: | ||
editor_plugin = load("res://addons/Wwise/editor/ak_editor_plugin.gd").new() | ||
get_editor_interface().get_base_control().add_child(editor_plugin) | ||
initialized = true | ||
build_export_plugin = load("res://addons/Wwise/editor/ak_build_export.gd").AkBuildExport.new() | ||
add_export_plugin(build_export_plugin) | ||
|
||
|
||
func _exit_tree(): | ||
remove_autoload_singleton("WwiseRuntimeManager") | ||
|
||
if Engine.is_editor_hint(): | ||
get_editor_interface().get_base_control().remove_child(editor_plugin) | ||
editor_plugin.queue_free() | ||
remove_export_plugin(build_export_plugin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters