Table of Contents

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

serializedObject SerializedObject

The serialized object to search in.

propertyName string

The name of the property to find.

Returns

SerializedProperty

The found property.

Exceptions

PropertyNotFoundException

The property was not found.