Table of Contents

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

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.