Method FindRequiredProperty
- Namespace
- Gamelogic.Extensions.Editor
- Assembly
- Gamelogic.Extensions.Editor.dll
FindRequiredProperty(SerializedObject, string)
Tries to find a property in a serialized object; throws if the property is not found.
public static SerializedProperty FindRequiredProperty(this SerializedObject serializedObject, string propertyName)
Parameters
serializedObjectSerializedObjectThe serialized object to search in.
propertyNamestringThe name of the property to find.
Returns
- SerializedProperty
The found property.
Exceptions
- PropertyNotFoundException
The property was not found.