You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
457 B
C#
21 lines
457 B
C#
1 year ago
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|