浏览代码

minor fixes

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
66d149d7
共有 2 个文件被更改,包括 5 次插入8 次删除
  1. 10
      com.unity.uiwidgets/Editor/UIWidgetsPanelEditor.cs
  2. 3
      com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanelWrapper.cs

10
com.unity.uiwidgets/Editor/UIWidgetsPanelEditor.cs


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();

3
com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanelWrapper.cs


using UnityEngine;
namespace Unity.UIWidgets.editor2 {
public delegate void UIWidgetsMainFunction();
public class UIWidgetsPanelWrapper {
RenderTexture _renderTexture;

正在加载...
取消
保存