Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 21601cb

Browse files
committed
fix some sample errors
1 parent 2d12f28 commit 21601cb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Tests/Editor/Menu.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public static void renderWidgets() {
3232
EditorWindow.GetWindow(typeof(Widgets));
3333
}
3434

35+
//These samples are not available after Unity2019.1
36+
/*
3537
[MenuItem("UIWidgetsTests/Show SceneViewTests")]
3638
public static void showSceneView() {
3739
SceneViewTests.show();
@@ -40,6 +42,6 @@ public static void showSceneView() {
4042
[MenuItem("UIWidgetsTests/Hide SceneViewTests")]
4143
public static void hideSceneView() {
4244
SceneViewTests.hide();
43-
}
45+
}*/
4446
}
4547
}

Tests/Editor/MouseHover.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ public static Widget createRow(bool canHover = true, bool nest = false) {
2424
result, "inner");
2525
}
2626

27+
//WARNING: nested MouseTracker is not supported by the current implementation that ported from flutter
28+
//refer to this issue https://github.com/flutter/flutter/issues/28407 and wait Google guys fixing it
29+
/*
2730
if (nest) {
2831
result = new Container(child: result, padding: EdgeInsets.all(40),
2932
color: Color.fromARGB(255, 255, 0, 0));
3033
result = new HoverTrackWidget(null,
3134
result, "outer");
3235
}
36+
*/
3337

3438
return result;
3539
}

0 commit comments

Comments
 (0)