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.

18 lines
731 B

using Unity.UIWidgets.engine;
using UnityEditor;
using UnityEditor.UI;
namespace Unity.UIWidgets.Editor {
[CustomEditor(typeof(UIWidgetsPanel), true)]
[CanEditMultipleObjects]
public class UIWidgetsPanelEditor : RawImageEditor {
public override void OnInspectorGUI() {
base.OnInspectorGUI();
var pixelRatioProperty = this.serializedObject.FindProperty("devicePixelRatioOverride");
var antiAliasingProperty = this.serializedObject.FindProperty("hardwareAntiAliasing");
EditorGUILayout.PropertyField(pixelRatioProperty);
EditorGUILayout.PropertyField(antiAliasingProperty);
this.serializedObject.ApplyModifiedProperties();
}
}
}