Sets a new value for the named property. The variant called depends on the property type, as returned by GetPropertyType().
C#
void SetPropertyValue(string propertyID, string value)
{
if (propertyID == "forename")
{
m_foreName = value;
return;
}
if (propertyID == "surname")
{
m_surName = value;
return;
}
inherited(propertyID, value);
}
void SetPropertyValue(string propertyID, GSObject value, string readableName)
{
if (propertyID == "junction")
{
m_junctionID = cast<GameObjectID>(value);
m_junctionName = readableName;
return;
}
if (propertyID == "sound-asset")
{
m_sound = cast<Asset>(value);
m_soundName = readableName;
return;
}
inherited(propertyID, value, readableName);
}
Display More