◆ FindPropertyRelativeFix()

static SerializedProperty FindPropertyRelativeFix ( this SerializedProperty  sp,
string  name,
ref SerializedObject  objectToApplyChanges 
)
static
Parameters
spThis is the serialixedProperty from which we want to get a relative/sub property.
namestring that represents the field name of the relative/sub property.
objectToApplyChangesThis ref parameter, upon exit, will either be null, or contain a reference to a SerializedObject that contains the property. It is this SerializedObject to which changes must be applied, by the user of this function, in order for them to be serialized properly.
Returns
The serializedProperty found with the field name, relative to the provided SerializedProperty. Null if no such field could be found.