Jump to content

[SOLVED] Unigine::PropertyParameter::getType() const


photo

Recommended Posts

Hi Nick.Sam,

Indeed there is a word "identifier" missing in the description (should be "type identifier"), as the method returns the identifier of the type (integer), not a string with the type name, neither the type itself (will be fixed ASAP). But if you check out the full description, you'll get:

image.png

The link to parameter types shall redirect you here (the list of type identifiers with the corresponding integer values).

To get the name of the parameter type, you can simply use the  Property::parameterNameByType() method like this:

Log::message("Parameter type: %s\n", pProperty->parameterNameByType(pPropParam->getType()));

Hope this helps!

And thanks for noticing!

Link to comment
  • silent changed the title to [SOLVED] Unigine::PropertyParameter::getType() const
×
×
  • Create New...