You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
365 B
16 lines
365 B
6 months ago
|
@tool
|
||
|
class_name DialogicStyleLayer
|
||
|
extends Resource
|
||
|
|
||
|
@export var scene: PackedScene = null
|
||
|
@export var overrides := {}
|
||
|
|
||
|
|
||
|
func _init(scene_path:Variant=null, scene_overrides:Dictionary={}):
|
||
|
if scene_path is PackedScene:
|
||
|
scene = scene_path
|
||
|
elif scene_path is String and ResourceLoader.exists(scene_path):
|
||
|
scene = load(scene_path)
|
||
|
overrides = scene_overrides
|
||
|
|