ZMWSLI0-SL2021-GR11/cw1/clock/Library/PackageCache/com.unity.timeline@1.2.18/Editor/UnityEditorInternals.cs

20 lines
646 B
C#
Raw Normal View History

2021-04-10 17:27:42 +02:00
using System;
using UnityEngine;
using Object = UnityEngine.Object;
namespace UnityEditor.Timeline
{
static class UnityEditorInternals
{
public static Object DoObjectField(Rect position, Object obj, Type type, int controlId, bool allowScene)
{
#if UNITY_2020_1_OR_NEWER
var newObject = EditorGUI.DoObjectField(position, position, controlId, obj, null, type, null, allowScene, EditorStyles.objectField);
#else
var newObject = EditorGUI.DoObjectField(position, position, controlId, obj, type, null, null, allowScene, EditorStyles.objectField);
#endif
return newObject;
}
}
}