【m】插件上传
This commit is contained in:
22
Packages/com.unity.renderstreaming@3.1.0-exp.9/Editor/SerializedPropertyExtension.cs
vendored
Normal file
22
Packages/com.unity.renderstreaming@3.1.0-exp.9/Editor/SerializedPropertyExtension.cs
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user