Method FindRequiredProperty
- Namespace
- Gamelogic.Extensions.Editor
- Assembly
- Gamelogic.Extensions.Editor.dll
FindRequiredProperty(SerializedObject, string)
Trys to find a property in a serialized object. If the property is not found, an exception is thrown.
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.