#Edit resource parameter in code

3 messages · Page 1 of 1 (latest)

strange blade
#

How would I change a specific parameter, like "World Size", from inside of a resource using GDscript, to say, 25?

I assumed it would be "walker_generator.settings.world_size.x = 25" (corresponding with the property code names when you hover over those parameters), but that doesn't seem to work...

I know with Material and in using a Shader there's a specific function for it, but I don't think one exists in this case...

vagrant void
strange blade
#

Yeah
Might be some weird error with using the @tool functionality though

Says: "Invalid access to property or key 'settings' on a base object of type 'Nil'."