polygone/Library/PackageCache/com.unity.timeline@1.5.4/Editor/Utilities/Scopes/PropertyScope.cs
2021-08-02 05:44:37 -04:00

20 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();
}
}
}