Firstborn/Library/PackageCache/com.unity.timeline@1.7.1/Editor/Utilities/Scopes/PropertyScope.cs

21 lines
457 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
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();
}
}
}