Files

23 lines
586 B
C#
Raw Permalink Normal View History

2026-04-28 16:48:04 +08:00
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;
}
}
}