protected virtual void SetFieldStringValue()

in Scripts/Editor/Windows/PropertyDrawers/WitPropertyDrawer.cs [257:280]


        protected virtual void SetFieldStringValue(SerializedProperty subfieldProperty, string newFieldValue)
        {
            // Supported types
            switch (subfieldProperty.type)
            {
                case "string":
                    subfieldProperty.stringValue = newFieldValue;
                    break;
                case "int":
                    int rI;
                    if (int.TryParse(newFieldValue, out rI))
                    {
                        subfieldProperty.intValue = rI;
                    }
                    break;
                case "bool":
                    bool rB;
                    if (bool.TryParse(newFieldValue, out rB))
                    {
                        subfieldProperty.boolValue = rB;
                    }
                    break;
            }
        }