0 votes

My most promising attempt:

  register_property<CPP, Ref<Material>>("material", &CPP::set_material, &CPP::get_material,

void CPP::set_material(Ref<Material> mat) { material = mat; }

Ref<Material> CPP::get_material() { return material; }

I tried many variations, it either ends with a property being locked in the editor (showing [null] and cannot be changed), or with editor crashing after opening the project.

asked Feb 18, 2019 in Engine by monnef (118 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.