Jump to content

[SOLVED] PropertyPtr addCallback(Unigine::Property::CALLBACK_PARAMETER_CHANGED, func...) strange behavior


photo

Recommended Posts

When i set callback via PropertyPtr addCallback method with CALLBACK_PARAMETER_CHANGED flag, the following signature needed for callback func:

p_changed(Unigine::PropertyPtr property, int num_that_changed)

 

I have property with 14 parameters, and if i modify property file in data/ComponentSystem folder, the property in editor refreshes. 

But when i change some parameter value in Editor, the int num_that_changed argument value becomes strange. It becomes more than 14 (like 15-29 or 30-44 on different parameters)

 

Link to comment

Hi qwert_e,

Unfortunately, there is a very few information in the documentation about this callback. We will fix it.
Num_that_changed is the ID of the Parameter that has been changed. If it's value is "-1", more than one parameter has been changed.

Best regards,
Alexander

Link to comment
  • silent changed the title to [SOLVED] PropertyPtr addCallback(Unigine::Property::CALLBACK_PARAMETER_CHANGED, func...) strange behavior
×
×
  • Create New...