Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PropertyScope.cs 457B

1234567891011121314151617181920
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEditor.Timeline
  4. {
  5. readonly struct PropertyScope : IDisposable
  6. {
  7. public readonly GUIContent content;
  8. public PropertyScope(Rect totalPosition, GUIContent label, SerializedProperty property)
  9. {
  10. content = EditorGUI.BeginProperty(totalPosition, label, property);
  11. }
  12. public void Dispose()
  13. {
  14. EditorGUI.EndProperty();
  15. }
  16. }
  17. }