Missing string instance property value


#1

Hi,

I just came across an issue when using instance properties. I needed a string type instance property, but found there was no way of doing it yet. I added the below code to add a StringInstancePropertyValue and RTTI expose it. I think this belongs in Nap core though.

// Workaround for missing string instance property type.
#include <instanceproperty.h>
namespace nap
{
	using StringInstancePropertyValue  = TypedInstancePropertyValue<std::string>;
}
RTTI_DEFINE_INSTANCE_PROPERTY_VALUE(nap::StringInstancePropertyValue)

#2

Agreed, string should be a default property override. We’ll add it to core!


#3

Thank you!

:watermelon::watermelon:


#4

This has been added to core and merged into master.