void CheckVariableType(object input, int inputType, string typeCheck, bool isEditable, float indent) { //Check standard variable types if (!ProcessStandardVariableTypes(input, inputType, typeCheck, isEditable, indent)) { //Check asset variable types if (!ProcessAssetVariableTypes(input, inputType, typeCheck, isEditable, indent)) { //Check enum variable types if (!ProcessEnumVariableTypes(input, inputType, typeCheck, isEditable, indent)) { string variableString = null; if (inputType == 0) { System.Reflection.PropertyInfo property = input as System.Reflection.PropertyInfo; variableString = property.ToString(); } else if (inputType == 1) { System.Reflection.FieldInfo field = input as System.Reflection.FieldInfo; variableString = field.ToString(); } OnVariableFail(variableString, currentVariable); } } } }
override public string ToString() { return(_field.ToString()); }