Infohazard.Core 1.4.1
Infohazard Core Utility Library
Loading...
Searching...
No Matches
Infohazard.Core.Editor.IObjectReferenceFieldAssignmentValidator Interface Reference

Used to validate and modify values that a user is attempting to assign to an object reference field. More...

Public Member Functions

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...
 

Detailed Description

Used to validate and modify values that a user is attempting to assign to an object reference field.

Member Function Documentation

◆ ValidateObjectFieldAssignment()

Object Infohazard.Core.Editor.IObjectReferenceFieldAssignmentValidator.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.

Parameters
referencesAll objects attempting to be assigned.
objTypeThe type of the field.
propertyThe property that references the field.
optionsAdditional options (used internally by Unity).
Returns
The object to assign to the field, or null.

Implemented in Infohazard.Core.Editor.ObjectReferenceFieldAssignmentValidator.


The documentation for this interface was generated from the following file: