|
|
|
|
|
|
public class UIWidgetsPanelEditor : RawImageEditor { |
|
|
|
|
|
|
|
public override void OnInspectorGUI() { |
|
|
|
base.OnInspectorGUI(); |
|
|
|
var pixelRatioProperty = serializedObject.FindProperty("devicePixelRatioOverride"); |
|
|
|
var antiAliasingProperty = serializedObject.FindProperty("hardwareAntiAliasing"); |
|
|
|
base.OnInspectorGUI(); |
|
|
|
//var pixelRatioProperty = serializedObject.FindProperty("devicePixelRatioOverride");
|
|
|
|
//var antiAliasingProperty = serializedObject.FindProperty("hardwareAntiAliasing");
|
|
|
|
EditorGUILayout.PropertyField(pixelRatioProperty); |
|
|
|
EditorGUILayout.PropertyField(antiAliasingProperty); |
|
|
|
//EditorGUILayout.PropertyField(pixelRatioProperty);
|
|
|
|
//EditorGUILayout.PropertyField(antiAliasingProperty);
|
|
|
|
UIWidgetsPanel panel = (UIWidgetsPanel)target; |
|
|
|
|
|
|
|
serializedObject.ApplyModifiedProperties(); |
|
|
|