Serialization.

GetGradientValue(SerializedProperty) Method

Summary

Gets the UnityEngine.Gradient value from a UnityEditor.SerializedPropertyType.Gradient.

Syntax

public static Gradient GetGradientValue(this SerializedProperty property)

Parameters

Name Type Description
property SerializedProperty

Return Value

Type Description
Gradient