Nik.Sam Posted February 17, 2022 Share Posted February 17, 2022 Return int, not type. int getType() const Returns the type of the property parameter. https://developer.unigine.com/en/docs/future/api/library/common/class.propertyparameter How get type of param? Link to comment
fox Posted February 17, 2022 Share Posted February 17, 2022 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: 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
Nik.Sam Posted February 18, 2022 Author Share Posted February 18, 2022 Thanks this helpfull. Link to comment
Recommended Posts