UnityGame/Library/PackageCache/com.unity.timeline/Editor/Utilities/Scopes/PropertyScope.cs
2024-10-27 10:53:47 +03:00

21 lines
457 B
C#

using System;
using UnityEngine;
namespace UnityEditor.Timeline
{
readonly struct PropertyScope : IDisposable
{
public readonly GUIContent content;
public PropertyScope(Rect totalPosition, GUIContent label, SerializedProperty property)
{
content = EditorGUI.BeginProperty(totalPosition, label, property);
}
public void Dispose()
{
EditorGUI.EndProperty();
}
}
}