23 lines
586 B
C#
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;
|
|
}
|
|
}
|
|
}
|