Files
webRtc/Packages/com.unity.renderstreaming@3.1.0-exp.9/Editor/SerializedPropertyExtension.cs
2026-04-28 16:48:04 +08:00

23 lines
586 B
C#

using UnityEditor;
namespace Unity.RenderStreaming.Editor
{
static class SerializedPropertyExtension
{
public static SerializedProperty FindPropertyInChildren(this SerializedProperty target, string propertyName)
{
SerializedProperty property = null;
while (target.Next(true))
{
if (target.name == propertyName)
{
property = target.Copy();
break;
}
}
target.Reset();
return property;
}
}
}