I have a problem with changing a property parameter that is of string type
____________________________________________________________________________________
#include <UnigineGame.h>
#include "UnigineComponentSystem.h"
class MaterialPaintingController final : public Unigine::ComponentBase
{
public:
COMPONENT(MaterialPaintingController, Unigine::ComponentBase);
COMPONENT_INIT(init);
PROP_NAME("MaterialPaintingController");
PROP_PARAM(String, painting_variant, "DEF");
PROP_ARRAY(Node, surfaces);
private:
void init();
void parameterChanged(Unigine::PropertyPtr property, int propID);
____________________________________________________________________________________
then I use setParameterData in the call
Unigine::String str("NewMat");
componentPtr->setParameterData("painting_variant", &str);
I did not get a callback for a change and I can't find out what's going on.
Is the use of setParameterData correct ?
thanks for any help.
Michal