Files
TowerDefence/My project/Library/PackageCache/com.unity.timeline@6b9e48457ddb/Editor/Utilities/Scopes/PropertyScope.cs

21 lines
457 B
C#
Raw Normal View History

2025-11-14 17:30:41 +00: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();
}
}
}