stuff
This commit is contained in:
16
addons/lightmap_probe_grid/editor_inspector_plugin.gd
Normal file
16
addons/lightmap_probe_grid/editor_inspector_plugin.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends EditorInspectorPlugin
|
||||
|
||||
var ui_control: PackedScene = preload("controls_scene.tscn")
|
||||
var ui: Control = null
|
||||
|
||||
func _can_handle(object: Object) -> bool:
|
||||
if object is LightmapProbeGrid:
|
||||
return true
|
||||
else:
|
||||
return false
|
||||
|
||||
func _parse_category(_object: Object, category: String) -> void:
|
||||
if category.begins_with("lightmap_probe_grid"):
|
||||
if ui == null:
|
||||
ui = ui_control.instantiate()
|
||||
add_property_editor("LighmapProbeGrid", ui)
|
||||
Reference in New Issue
Block a user