浏览代码

Merge branch 'widgets_panel' into 'master'

fix sample

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!95
/main
Fan Zhang 6 年前
当前提交
698ddedd
共有 4 个文件被更改,包括 48 次插入0 次删除
  1. 16
      Editor/UIWidgetsPanelEditor.cs
  2. 11
      Editor/UIWidgetsPanelEditor.cs.meta
  3. 14
      Samples/UIWidgetsSample.asmdef
  4. 7
      Samples/UIWidgetsSample.asmdef.meta

16
Editor/UIWidgetsPanelEditor.cs


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");
EditorGUILayout.PropertyField(pixelRatioProperty);
this.serializedObject.ApplyModifiedProperties();
}
}
}

11
Editor/UIWidgetsPanelEditor.cs.meta


fileFormatVersion: 2
guid: 00793f716c6e64c88b77b2414fd6b69a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

14
Samples/UIWidgetsSample.asmdef


{
"name": "UIWidgetsSample",
"references": [
"Unity.UIWidgets"
],
"optionalUnityReferences": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": []
}

7
Samples/UIWidgetsSample.asmdef.meta


fileFormatVersion: 2
guid: a7ca98f66c76743a39c34ff4c984fa65
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存