You need to get the material, assign it to a variable, and then you should be able to change it. The reason the debugger is giving an arrow is likely because you are using preload
, which returns a constant as its intended just for loading. If you want to modify it, you’ll need to use multiple statements and/or put it in a normal variable:
# might work
var material = preload(“res://material_here.tscn”)
func _ready():
material.params_grow_amount = 2.0
# probably will work (assuming on a MeshInstance)
func _ready():
var material = get_surface_material(0)
material.params_grow_amount = 2.0
Also, I removed a few of the tags, as tags like Team Building
doesn’t really apply to this question.