material-maker/addons/material_maker/engine/gen_material.gd

12 lines
232 B
GDScript3
Raw Normal View History

extends MMGenBase
class_name MMGenMaterial
func generate_material():
print("Generating material")
var material = SpatialMaterial.new()
return material
func initialize(data: Dictionary):
if data.has("name"):
name = data.name