|
Infohazard.Core 1.4.2
Infohazard Core Utility Library
|
IObjectReferenceFieldAssignmentValidator that uses Unity validation internally, and allows adding additional validation with a simplified interface. More...
Public Member Functions | |||||||||
| ObjectReferenceFieldAssignmentValidator (Func< Object, Object > validator=null) | |||||||||
| Construct with a given validation function. More... | |||||||||
| virtual Object | ValidateObjectFieldAssignment (Object[] references, Type objType, SerializedProperty property, int options) | ||||||||
Validate the input objects for assignment to a field of the given type, and return a valid one.
| |||||||||
| Object | ValidateObjectFieldAssignment (Object[] references, Type objType, SerializedProperty property, int options) | ||||||||
| Validate the input objects for assignment to a field of the given type, and return a valid one. More... | |||||||||
IObjectReferenceFieldAssignmentValidator that uses Unity validation internally, and allows adding additional validation with a simplified interface.
| Infohazard.Core.Editor.ObjectReferenceFieldAssignmentValidator.ObjectReferenceFieldAssignmentValidator | ( | Func< Object, Object > | validator = null | ) |
Construct with a given validation function.
| validator | Simplified validation function that validates a single object. |
|
virtual |
Validate the input objects for assignment to a field of the given type, and return a valid one.
| references | All objects attempting to be assigned. |
| objType | The type of the field. |
| property | The property that references the field. |
| options | Additional options (used internally by Unity). |
Implements Infohazard.Core.Editor.IObjectReferenceFieldAssignmentValidator.