My code in short is
extends Resource
class_name Blueprint
@export var recipe: Array[BlueprintRecipeItem] = []
func _init(p_recipe = []):
recipe = p_recipe
but with this I get an error:
Trying to assign an array of type "Array" to a variable of type "Array[BlueprintRecipeItem]".
I also tried [null]
instead of []