浏览代码

Merge pull request #78 from Unity-Technologies/zxw/gallery

Zxw/gallery
/zgh-devtools
GitHub 4 年前
当前提交
131bc6db
共有 188 个文件被更改,包括 3457 次插入541 次删除
  1. 2
      Samples/UIWidgetsSamples_2019_4/Assets/Script/TextTest.cs
  2. 7
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/about.cs
  3. 2
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/backdrop.cs
  4. 42
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/demos.cs
  5. 7
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/updater.cs
  6. 37
      Samples/UIWidgetsSamples_2019_4/Assets/WidgetsSample/NavigationSample.cs
  7. 2
      com.unity.uiwidgets/Runtime/animation/curves.cs
  8. 24
      com.unity.uiwidgets/Runtime/animation/tween.cs
  9. 2
      com.unity.uiwidgets/Runtime/async2/zone.cs
  10. 6
      com.unity.uiwidgets/Runtime/cupertino/button.cs
  11. 26
      com.unity.uiwidgets/Runtime/cupertino/context_menu.cs
  12. 2
      com.unity.uiwidgets/Runtime/cupertino/date_picker.cs
  13. 12
      com.unity.uiwidgets/Runtime/cupertino/sliding_segmented_control.cs
  14. 9
      com.unity.uiwidgets/Runtime/cupertino/text_field.cs
  15. 55
      com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanel.cs
  16. 2
      com.unity.uiwidgets/Runtime/foundation/assertions.cs
  17. 20
      com.unity.uiwidgets/Runtime/gestures/converter.cs
  18. 6
      com.unity.uiwidgets/Runtime/material/banner.cs
  19. 6
      com.unity.uiwidgets/Runtime/material/bottom_sheet.cs
  20. 8
      com.unity.uiwidgets/Runtime/material/button.cs
  21. 16
      com.unity.uiwidgets/Runtime/material/button_theme.cs
  22. 4
      com.unity.uiwidgets/Runtime/material/card.cs
  23. 10
      com.unity.uiwidgets/Runtime/material/card_theme.cs
  24. 76
      com.unity.uiwidgets/Runtime/material/chip.cs
  25. 24
      com.unity.uiwidgets/Runtime/material/chip_theme.cs
  26. 10
      com.unity.uiwidgets/Runtime/material/data_table.cs
  27. 10
      com.unity.uiwidgets/Runtime/material/dialog.cs
  28. 3
      com.unity.uiwidgets/Runtime/material/divider.cs
  29. 8
      com.unity.uiwidgets/Runtime/material/drawer_header.cs
  30. 21
      com.unity.uiwidgets/Runtime/material/dropdown.cs
  31. 4
      com.unity.uiwidgets/Runtime/material/expand_icon.cs
  32. 3
      com.unity.uiwidgets/Runtime/material/expansion_panel.cs
  33. 6
      com.unity.uiwidgets/Runtime/material/flat_button.cs
  34. 4
      com.unity.uiwidgets/Runtime/material/flexible_space_bar.cs
  35. 10
      com.unity.uiwidgets/Runtime/material/grid_tile_bar.cs
  36. 4
      com.unity.uiwidgets/Runtime/material/icon_button.cs
  37. 14
      com.unity.uiwidgets/Runtime/material/ink_decoration.cs
  38. 24
      com.unity.uiwidgets/Runtime/material/input_decorator.cs
  39. 13
      com.unity.uiwidgets/Runtime/material/list_tile.cs
  40. 4
      com.unity.uiwidgets/Runtime/material/material_button.cs
  41. 10
      com.unity.uiwidgets/Runtime/material/outline_button.cs
  42. 18
      com.unity.uiwidgets/Runtime/material/page_transitions_theme.cs
  43. 6
      com.unity.uiwidgets/Runtime/material/paginated_data_table.cs
  44. 6
      com.unity.uiwidgets/Runtime/material/pickers/calendar_date_picker.cs
  45. 2
      com.unity.uiwidgets/Runtime/material/pickers/date_picker_dialog.cs
  46. 14
      com.unity.uiwidgets/Runtime/material/popup_menu.cs
  47. 8
      com.unity.uiwidgets/Runtime/material/raised_button.cs
  48. 2
      com.unity.uiwidgets/Runtime/material/selectable_text.cs
  49. 4
      com.unity.uiwidgets/Runtime/material/slider_theme.cs
  50. 4
      com.unity.uiwidgets/Runtime/material/swtich_list_tile.cs
  51. 8
      com.unity.uiwidgets/Runtime/material/tab_bar_theme.cs
  52. 17
      com.unity.uiwidgets/Runtime/material/tab_indicator.cs
  53. 12
      com.unity.uiwidgets/Runtime/material/tabs.cs
  54. 2
      com.unity.uiwidgets/Runtime/material/text_field.cs
  55. 2
      com.unity.uiwidgets/Runtime/material/time_picker.cs
  56. 24
      com.unity.uiwidgets/Runtime/material/tooltip.cs
  57. 16
      com.unity.uiwidgets/Runtime/material/tooltip_theme.cs
  58. 4
      com.unity.uiwidgets/Runtime/material/user_accounts_drawer_header.cs
  59. 2
      com.unity.uiwidgets/Runtime/material/swtich_list_tile.cs.meta
  60. 4
      com.unity.uiwidgets/Runtime/painting/alignment.cs
  61. 2
      com.unity.uiwidgets/Runtime/painting/border_radius.cs
  62. 2
      com.unity.uiwidgets/Runtime/painting/box_border.cs
  63. 4
      com.unity.uiwidgets/Runtime/painting/edge_insets.cs
  64. 6
      com.unity.uiwidgets/Runtime/painting/text_style.cs
  65. 2
      com.unity.uiwidgets/Runtime/rendering/flex.cs
  66. 6
      com.unity.uiwidgets/Runtime/rendering/sliver_padding.cs
  67. 6
      com.unity.uiwidgets/Runtime/services/asset_bundle.cs
  68. 172
      com.unity.uiwidgets/Runtime/services/keyboard.cs
  69. 13
      com.unity.uiwidgets/Runtime/services/text_input.cs
  70. 2
      com.unity.uiwidgets/Runtime/ui2/compositing.cs
  71. 9
      com.unity.uiwidgets/Runtime/ui2/pointer.cs
  72. 2
      com.unity.uiwidgets/Runtime/ui2/text.cs
  73. 2
      com.unity.uiwidgets/Runtime/ui2/window.cs
  74. 17
      com.unity.uiwidgets/Runtime/widgets/animated_list.cs
  75. 7
      com.unity.uiwidgets/Runtime/widgets/basic.cs
  76. 19
      com.unity.uiwidgets/Runtime/widgets/container.cs
  77. 48
      com.unity.uiwidgets/Runtime/widgets/editable_text.cs
  78. 2
      com.unity.uiwidgets/Runtime/widgets/focus_manager.cs
  79. 19
      com.unity.uiwidgets/Runtime/widgets/focus_traversal.cs
  80. 12
      com.unity.uiwidgets/Runtime/widgets/framework.cs
  81. 32
      com.unity.uiwidgets/Runtime/widgets/implicit_animations.cs
  82. 61
      com.unity.uiwidgets/Runtime/widgets/scroll_view.cs
  83. 4
      com.unity.uiwidgets/Runtime/widgets/single_child_scroll_view.cs
  84. 2
      com.unity.uiwidgets/Runtime/widgets/title.cs
  85. 5
      engine/src/lib/ui/window/pointer_data.h
  86. 6
      engine/src/shell/platform/embedder/embedder.cc
  87. 5
      engine/src/shell/platform/embedder/embedder.h
  88. 23
      engine/src/shell/platform/unity/windows/uiwidgets_panel.cc
  89. 2
      engine/src/shell/platform/unity/windows/uiwidgets_panel.h
  90. 537
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFeildTest.unity
  91. 7
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFeildTest.unity.meta
  92. 537
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFieldSample.unity
  93. 7
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFieldSample.unity.meta
  94. 537
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFieldTest.unity
  95. 7
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFieldTest.unity.meta
  96. 537
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextInputSample.unity
  97. 7
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextInputSample.unity.meta
  98. 537
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/ToDoApp.unity
  99. 7
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/ToDoApp.unity.meta
  100. 76
      Samples/UIWidgetsSamples_2019_4/Assets/Script/TextFieldTest.cs

2
Samples/UIWidgetsSamples_2019_4/Assets/Script/TextTest.cs


public override Widget build(BuildContext context)
{
return new CupertinoApp(
home: new HomeScreen()//new DetailScreen1("ok")
home: new HomeScreen() //new DetailScreen1("ok")
//color: Color.white
);
}

7
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/about.cs


}
public class _LinkTextSpan : TextSpan
{
private static void launch(string url)
{
Process.Start(url);
}
recognizer: new TapGestureRecognizer {onTap = () => { launch(url); }}
recognizer: new TapGestureRecognizer {onTap = () => { BrowserUtils.launch(url); }}
)
{
}

2
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/backdrop.cs


private AnimationController _controller;
private Animation<float> _frontOpacity;
private static readonly Animatable<float> _frontOpacityTween = new Tween<float>(begin: 0.2f, end: 1.0f)
private static readonly Animatable<float> _frontOpacityTween = new FloatTween(begin: 0.2f, end: 1.0f)
.chain(new CurveTween(curve: new Interval(0.0f, 0.4f, curve: Curves.easeInOut)));
public override void initState()

42
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/demos.cs


using System;
using System.Collections.Generic;
using System.Linq;
using UIWidgetsGallery.demo.material;
using UnityEngine;
namespace UIWidgetsGallery.gallery
{

{
List<GalleryDemo> galleryDemos = new List<GalleryDemo>
{
new GalleryDemo(
title: "Backdrop",
subtitle: $"Select a front layer from back layer",
icon: GalleryIcons.backdrop,
category: GalleryDemoCategory._kMaterialComponents,
routeName: BackdropDemo.routeName,
buildRoute: (BuildContext context) => new BackdropDemo()
),
new GalleryDemo(
title: "Banner",
subtitle: "Displaying a banner within a list",
icon: GalleryIcons.lists_leave_behind,
category: GalleryDemoCategory._kMaterialComponents,
routeName: BannerDemo.routeName,
documentationUrl: "https://api.flutter.dev/flutter/material/MaterialBanner-class.html",
buildRoute: (BuildContext context) => new BannerDemo()
),
new GalleryDemo(
title: "Bottom app bar",
subtitle: "Optional floating action button notch",
icon: GalleryIcons.bottom_app_bar,
category: GalleryDemoCategory._kMaterialComponents,
routeName: BottomAppBarDemo.routeName,
documentationUrl: "https://docs.flutter.io/flutter/material/BottomAppBar-class.html",
buildRoute: (BuildContext context) => new BottomAppBarDemo()
),
new GalleryDemo(
title: "Bottom navigation",
subtitle: "Bottom navigation with cross-fading views",
icon: GalleryIcons.bottom_navigation,
category: GalleryDemoCategory._kMaterialComponents,
routeName: BottomNavigationDemo.routeName,
documentationUrl: "https://docs.flutter.io/flutter/material/BottomNavigationBar-class.html",
buildRoute: (BuildContext context) => new BottomNavigationDemo()
)
};
return galleryDemos;

public static readonly List<GalleryDemoCategory> kAllGalleryDemoCategories =
kAllGalleryDemos.Select<GalleryDemo, GalleryDemoCategory>((GalleryDemo demo) => demo.category).ToList();
public static readonly HashSet<GalleryDemoCategory> kAllGalleryDemoCategories =
new HashSet<GalleryDemoCategory>(kAllGalleryDemos.Select<GalleryDemo, GalleryDemoCategory>((GalleryDemo demo) => demo.category).ToList());
static Dictionary<GalleryDemoCategory, List<GalleryDemo>> _generateCategoryToDemos()

7
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/updater.cs


internal class UpdaterState : State<Updater>
{
private static void launch(string url)
{
Process.Start(url);
}
public override void initState()
{
base.initState();

material_.showDialog<bool>(context: this.context, builder: this._buildDialog).then(wantsUpdate =>
{
if (wantsUpdate != null && (bool) wantsUpdate)
launch((string) updateUrl);
BrowserUtils.launch((string) updateUrl);
});
});
}

37
Samples/UIWidgetsSamples_2019_4/Assets/WidgetsSample/NavigationSample.cs


{
ui_.runApp(new MyApp());
}
class MyApp : StatelessWidget
{
public override Widget build(BuildContext context)

}
}
}
public class CustomButton : StatelessWidget {
public CustomButton(
Key key = null,
GestureTapCallback onPressed = null,
EdgeInsets padding = null,
Color backgroundColor = null,
Widget child = null
) : base(key: key) {
this.onPressed = onPressed;
this.padding = padding ?? EdgeInsets.all(8.0f);
this.backgroundColor = backgroundColor ?? Colors.white;
this.child = child;
}
public readonly GestureTapCallback onPressed;
public readonly EdgeInsets padding;
public readonly Widget child;
public readonly Color backgroundColor;
public override Widget build(BuildContext context) {
return new GestureDetector(
onTap: this.onPressed,
child: new Container(
padding: this.padding,
color: this.backgroundColor,
child: this.child
)
);
}
}
class HomeScreen : StatelessWidget {
public override Widget build(BuildContext context) {

2
com.unity.uiwidgets/Runtime/animation/curves.cs


start: 0.0f, end: 1.0f, tolerance: 1e-12f).ToList();
}
static readonly List<String> _debugAssertReasons = new List<String>();
static readonly List<string> _debugAssertReasons = new List<string>();
readonly List<Curve2DSample> _precomputedSamples;

24
com.unity.uiwidgets/Runtime/animation/tween.cs


readonly Animatable<T> _evaluatable;
public override T value {
get { return _evaluatable.evaluate(parent); }
get {
return _evaluatable.evaluate(parent);
}
}
public override string ToString() {

return $"{_parent}\u27A9{_evaluatable}";
}
}
/**
* We make Tween<T> a abstract class by design here (while it is not a abstract class in flutter
* The reason to do so is, in C# we cannot use arithmetic between generic types, therefore the
* lerp method cannot be implemented in Tween<T>
*
* To solve this problem, we make each Tween<T1>, Tween<T2> an explicit subclass T1Tween and T2Tween and
* implement the lerp method specifically
*
* See the implementations in "_OnOffAnimationColor" for some specific workarounds on this issue
*
*/
public class Tween<T> : Animatable<T>, IEquatable<Tween<T>> {
public abstract class Tween<T> : Animatable<T>, IEquatable<Tween<T>> {
public Tween(T begin, T end) {
this.begin = begin;
this.end = end;

public virtual T end { get; set; }
public virtual T lerp(float t) {
D.assert(begin != null);
D.assert(end != null);
return default; //begin + (end - begin) * t as T;
}
public abstract T lerp(float t);
public override T transform(float t) {
if (t == 0.0)

2
com.unity.uiwidgets/Runtime/async2/zone.cs


return handler(implementation.zone, parentDelegate, this, duration, f);
}
public override void print(String line) {
public override void print(string line) {
var implementation = _print;
ZoneDelegate parentDelegate = async_._parentDelegate(implementation.zone);
PrintHandler handler = implementation.function;

6
com.unity.uiwidgets/Runtime/cupertino/button.cs


public CupertinoButton(
Key key = null,
Widget child = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Color color = null,
Color disabledColor = null,
float minSize = 44.0f,

public static CupertinoButton filled(
Key key = null,
Widget child = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Color disabledColor = null,
float minSize = 44.0f,
float pressedOpacity = 0.4f,

public readonly Widget child;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly Color color;

26
com.unity.uiwidgets/Runtime/cupertino/context_menu.cs


public override void initState() {
base.initState();
_mask = new _OnOffAnimation<Color>(
_mask = new _OnOffAnimationColor(
controller: widget.controller,
onValue: _lightModeMaskColor,
offValue: _masklessColor,

}
}
public class _OnOffAnimation<T> : CompoundAnimation<T> {
public _OnOffAnimation(
/**
* We cannot use _OnOffAnimation<T> here directly since Tween<T> is an abstract class in UIWidgets (while it is not in flutter)
* Refer to "Twee<T>" for the detailed reasons why we do so
*
* Instead, we should explicitly define classes for each generic type here
*
*/
public class _OnOffAnimationColor : CompoundAnimation<Color> {
public _OnOffAnimationColor(
T onValue = default,
T offValue = default,
Color onValue = default,
Color offValue = default,
first: new Tween<T>(begin: offValue, end: onValue).animate(
first: new ColorTween(begin: offValue, end: onValue).animate(
next: new Tween<T>(begin: onValue, end: offValue).animate(
next: new ColorTween(begin: onValue, end: offValue).animate(
new CurvedAnimation(
parent: controller,
curve: new Interval(intervalOff == null ? 0.0f : (float)intervalOff, intervalOff == null ? 0.0f : (float)intervalOff)

D.assert(intervalOff !=null && intervalOff >= 0.0 && intervalOff <= 1.0);
D.assert(intervalOn <= intervalOff);
}
public readonly T _offValue;
public override T value {
public readonly Color _offValue;
public override Color value {
get {
return next.value.Equals( _offValue) ? next.value : first.value;
}

2
com.unity.uiwidgets/Runtime/cupertino/date_picker.cs


numberLabelHeight = textPainter.height;
numberLabelBaseline = textPainter.computeDistanceToActualBaseline(TextBaseline.alphabetic);
}
Widget _buildLabel(String text, EdgeInsetsDirectional pickerPadding) {
Widget _buildLabel(string text, EdgeInsetsDirectional pickerPadding) {
EdgeInsetsDirectional padding = EdgeInsetsDirectional.only(
start: numberLabelWidth
+ CupertinoDatePickerUtils._kTimerPickerLabelPadSize

12
com.unity.uiwidgets/Runtime/cupertino/sliding_segmented_control.cs


public readonly Dictionary<T, AnimationController> _highlightControllers = new Dictionary<T, AnimationController>();
public readonly Tween<FontWeight> _highlightTween = new _FontWeightTween(begin: FontWeight.normal, end: FontWeight.w500);
public readonly Dictionary<T, AnimationController> _pressControllers = new Dictionary<T, AnimationController>();
public readonly Tween<float> _pressTween = new Tween<float>(begin: 1, end: 0.2f);
public readonly Tween<float> _pressTween = new FloatTween(begin: 1, end: 0.2f);
List<T> keys;

float separatorOpacity = 0f) {
D.assert(separatorOpacity != null);
D.assert(opacity != null);
separatorTween = new Tween<float>(begin: separatorOpacity, end: separatorOpacity);
opacityTween = new Tween<float>(begin: opacity, end: opacity);
separatorTween = new FloatTween(begin: separatorOpacity, end: separatorOpacity);
opacityTween = new FloatTween(begin: opacity, end: opacity);
}
float opacity;
Tween<float> opacityTween;

Tween<Rect> _currentThumbTween;
Tween<float> _thumbScaleTween = new Tween<float>(begin: CupertinoSlidingSegmentedControlsUtils._kMinThumbScale, end: 1);
Tween<float> _thumbScaleTween = new FloatTween(begin: CupertinoSlidingSegmentedControlsUtils._kMinThumbScale, end: 1);
float currentThumbScale = 1;

void _playThumbScaleAnimation(bool isExpanding = false) {
D.assert(isExpanding != null);
_thumbScaleTween = new Tween<float>(begin: currentThumbScale, end: isExpanding ? 1 : CupertinoSlidingSegmentedControlsUtils._kMinThumbScale);
_thumbScaleTween = new FloatTween(begin: currentThumbScale, end: isExpanding ? 1 : CupertinoSlidingSegmentedControlsUtils._kMinThumbScale);
state.thumbScaleController.animateWith(CupertinoSlidingSegmentedControlsUtils._kThumbSpringAnimationSimulation);
}

RenderBox child = children[i];
_ChildAnimationManifest manifest = _childAnimations[child];
D.assert(manifest != null);
manifest.separatorTween = new Tween<float>(
manifest.separatorTween = new FloatTween(
begin: manifest.separatorOpacity,
end: shouldFadeOut ? 0 : 1
);

9
com.unity.uiwidgets/Runtime/cupertino/text_field.cs


using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using UnityEngine;
using Color = Unity.UIWidgets.ui.Color;
namespace Unity.UIWidgets.cupertino {
class CupertinoTextFieldUtils {

public readonly BoxDecoration decoration;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly string placeholder;

public GlobalKey<EditableTextState> editableTextKey {
get {
return GlobalKey<EditableTextState>.key();
return _editableTextKey;
public readonly GlobalKey<EditableTextState> _editableTextKey = GlobalKey<EditableTextState>.key();
//public readonly GlobalKey<EditableTextState> editableTextKey = GlobalKey<EditableTextState>.key();
public bool selectionEnabled {
get { return widget.selectionEnabled;}

55
com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanel.cs


using System.Runtime.InteropServices;
using AOT;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.services;
using Unity.UIWidgets.ui;
using UnityEngine;

#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
public partial class UIWidgetsPanel {
RenderTexture _renderTexture;
void _createRenderTexture(int width, int height, float devicePixelRatio) {
D.assert(_renderTexture == null);

texture = _renderTexture;
}
void _destroyRenderTexture() {
D.assert(_renderTexture != null);
texture = null;

void _enableUIWidgetsPanel(string font_settings)
{
void _enableUIWidgetsPanel(string font_settings) {
void _resizeUIWidgetsPanel()
{
void _resizeUIWidgetsPanel() {
_renderTexture.GetNativeTexturePtr(),
_width, _height, _devicePixelRatio);
_renderTexture.GetNativeTexturePtr(),
_width, _height, _devicePixelRatio);
IntPtr nativeTexturePtr, int width, int height, float dpi, string streamingAssetsPath, string font_settings);
IntPtr nativeTexturePtr, int width, int height, float dpi, string streamingAssetsPath,
string font_settings);
[DllImport(NativeBindings.dllName)]
static extern void UIWidgetsPanel_onRenderTexture(
IntPtr ptr, IntPtr nativeTexturePtr, int width, int height, float dpi);

IntPtr ptr, int width, int height, float dpi);
}
#endif
public partial class UIWidgetsPanel : RawImage {
[Serializable]
public struct Font {

[Serializable]
public struct TextFont {
public string family;

if (textFont == null || textFont.Length == 0) {
return null;
}
var result = new object[textFont.Length];
for (int i = 0; i < textFont.Length; i++) {
var font = new Dictionary<string, object>();

if (textFont[i].fonts[j].asset.Length > 0) {
dic[j].Add("asset", textFont[i].fonts[j].asset);
}
public float devicePixelRatioOverride;
public float devicePixelRatioOverride = 1;
public float hardwareAntiAliasing;
// RectTransform rectTransform {

IntPtr _ptr;
GCHandle _handle;
int _width;
int _height;
float _devicePixelRatio;

if (fonts != null && fonts.Length > 0) {
settings.Add("fonts", fontsToObject(fonts));
}
_enableUIWidgetsPanel(JSONMessageCodec.instance.toJson(settings));
Input_OnEnable();

_handle = default;
_disableUIWidgetsPanel();
D.assert(!isolate.isValid);
base.OnDisable();
}

Event e = Event.current;
if (e.isKey) {
UIWidgetsPanel_onKey(_ptr, e.keyCode, e.type == EventType.KeyDown);
if (e.character != 0) {
UIWidgetsPanel_onChar(_ptr, e.character);
if (e.character != 0 || e.keyCode == KeyCode.Backspace) {
PointerEventConverter.KeyEvent.Enqueue(new Event(e));
// TODO: add on char
// UIWidgetsPanel_onChar(_ptr, e.character);
}
}
}

_isEntered = false;
UIWidgetsPanel_onMouseLeave(_ptr);
}
public void OnDrag(PointerEventData eventData) {
var pos = _getPointerPosition(Input.mousePosition);
if (pos == null) {

2
com.unity.uiwidgets/Runtime/foundation/assertions.cs


internal abstract class _ErrorDiagnostic : DiagnosticsProperty<List<object>> {
internal _ErrorDiagnostic(
String message,
string message,
DiagnosticsTreeStyle style = DiagnosticsTreeStyle.flat,
DiagnosticLevel level = DiagnosticLevel.info
) : base(

20
com.unity.uiwidgets/Runtime/gestures/converter.cs


using System;
using Unity.UIWidgets.service;
using UnityEngine;
namespace Unity.UIWidgets.gestures {

var radiusMax = _toLogicalPixels(datum.radiusMax, devicePixelRatio);
var timeStamp = datum.timeStamp;
var kind = datum.kind;
// TODO: datum.signalKind is not nullable, "else" could not be reached
if (datum.signalKind == null || datum.signalKind == ui.PointerSignalKind.none) {
switch (datum.change) {
case PointerChange.add: {

radiusMax: radiusMax
);
break;
default:
//TODO: PUT KEYBOARD TO A PROPRER POSITION
if (datum.kind == PointerDeviceKind.keyboard) {
var keyBoardEvent = new Event();
if (datum.change == PointerChange.kMouseDown) {
keyBoardEvent.type = EventType.KeyDown;
}else if (datum.change == PointerChange.kMouseUp) {
keyBoardEvent.type = EventType.KeyUp;
}
keyBoardEvent.keyCode = (KeyCode)datum.buttons;
RawKeyboard.instance._handleKeyEvent(keyBoardEvent);
TextInput.OnGUI();
}
break;
}
}
else {

}
}
public static Queue<Event> KeyEvent = new Queue<Event>();
static float _toLogicalPixels(float physicalPixels, float devicePixelRatio) {
return physicalPixels / devicePixelRatio;
}

6
com.unity.uiwidgets/Runtime/material/banner.cs


using TextStyle = Unity.UIWidgets.painting.TextStyle;
namespace Unity.UIWidgets.material {
class MaterialBanner : StatelessWidget {
public class MaterialBanner : StatelessWidget {
public MaterialBanner(
Key key = null,
Widget content = null,

var rowList = new List<Widget>();
if (leading != null) {
rowList.Add(new Padding(
padding: (EdgeInsets) leadingPadding,
padding: leadingPadding,
child: leading
));
}

var columnList = new List<Widget>();
columnList.Add(new Padding(
padding: (EdgeInsets) padding,
padding: padding,
child: new Row(
children: rowList
)

6
com.unity.uiwidgets/Runtime/material/bottom_sheet.cs


public static Future<T> showModalBottomSheet<T>(
BuildContext context,
WidgetBuilder builder,
Color backgroundColor,
Color backgroundColor = null,
float? elevation = null,
ShapeBorder shape = null,
Clip? clipBehavior = null,

class _ModalBottomSheetState<T> : State<_ModalBottomSheet<T>> {
ParametricCurve<float> animationCurve = material_._modalBottomSheetCurve;
String _getRouteLabel(MaterialLocalizations localizations) {
string _getRouteLabel(MaterialLocalizations localizations) {
switch (Theme.of(context).platform) {
case RuntimePlatform.IPhonePlayer:
case RuntimePlatform.OSXEditor:

D.assert(material_.debugCheckHasMaterialLocalizations(context));
MediaQueryData mediaQuery = MediaQuery.of(context);
MaterialLocalizations localizations = MaterialLocalizations.of(context);
String routeLabel = _getRouteLabel(localizations);
string routeLabel = _getRouteLabel(localizations);
return new AnimatedBuilder(
animation: widget.route.animation,

8
com.unity.uiwidgets/Runtime/material/button.cs


float hoverElevation = 4.0f,
float highlightElevation = 8.0f,
float disabledElevation = 0.0f,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
BoxConstraints constraints = null,
ShapeBorder shape = null,

public readonly float disabledElevation;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly VisualDensity visualDensity;

ShapeBorder effectiveShape = MaterialStateProperty<Color>.resolveAs<ShapeBorder>(widget.shape, _states);
Offset densityAdjustment = widget.visualDensity.baseSizeAdjustment;
BoxConstraints effectiveConstraints = widget.visualDensity.effectiveConstraints(widget.constraints);
EdgeInsets padding = widget.padding.add(
EdgeInsetsGeometry padding = widget.padding.add(
EdgeInsets.only(
left: densityAdjustment.dx,
top: densityAdjustment.dy,

).clamp(EdgeInsets.zero, EdgeInsets.infinity) as EdgeInsets;
).clamp(EdgeInsets.zero, EdgeInsetsGeometry.infinity) as EdgeInsets;
Widget result = new ConstrainedBox(
constraints: effectiveConstraints,

16
com.unity.uiwidgets/Runtime/material/button_theme.cs


ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded,
float minWidth = 88.0f,
float height = 36.0f,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
ShapeBorder shape = null,
bool alignedDropdown = false,
Color buttonColor = null,

ButtonTextTheme textTheme = ButtonTextTheme.accent,
float minWidth = 64.0f,
float height = 36.0f,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
ShapeBorder shape = null,
bool alignedDropdown = false,
Color buttonColor = null,

ButtonTextTheme textTheme = ButtonTextTheme.normal,
float minWidth = 88.0f,
float height = 36.0f,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
ShapeBorder shape = null,
ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded,
bool alignedDropdown = false,

}
}
public EdgeInsets padding {
public EdgeInsetsGeometry padding {
get {
if (_padding != null) {
return _padding;

}
}
readonly EdgeInsets _padding;
readonly EdgeInsetsGeometry _padding;
public ShapeBorder shape {
get {

}
public EdgeInsets getPadding(MaterialButton button) {
public EdgeInsetsGeometry getPadding(MaterialButton button) {
if (button.padding != null) {
return button.padding;
}

layoutBehavior: layoutBehavior ?? this.layoutBehavior,
minWidth: minWidth ?? this.minWidth,
height: height ?? this.height,
padding: (EdgeInsets) padding ?? this.padding,
padding: padding ?? this.padding,
shape: shape ?? this.shape,
alignedDropdown: alignedDropdown ?? this.alignedDropdown,
buttonColor: buttonColor ?? _buttonColor,

defaultValue: defaultTheme.textTheme));
properties.add(new FloatProperty("minWidth", minWidth, defaultValue: defaultTheme.minWidth));
properties.add(new FloatProperty("height", height, defaultValue: defaultTheme.height));
properties.add(new DiagnosticsProperty<EdgeInsets>("padding", padding,
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding,
defaultValue: defaultTheme.padding));
properties.add(new DiagnosticsProperty<ShapeBorder>("shape", shape, defaultValue: defaultTheme.shape));
properties.add(new FlagProperty("alignedDropdown",

4
com.unity.uiwidgets/Runtime/material/card.cs


float? elevation = null,
ShapeBorder shape = null,
bool borderOnForeground = true,
EdgeInsets margin = null,
EdgeInsetsGeometry margin = null,
Clip? clipBehavior = null,
Widget child = null) : base(key: key) {
D.assert(elevation == null || elevation >= 0.0f);

public readonly Clip? clipBehavior;
public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
public readonly Widget child;

10
com.unity.uiwidgets/Runtime/material/card_theme.cs


Color color = null,
Color shadowColor = null,
float? elevation = null,
EdgeInsets margin = null,
EdgeInsetsGeometry margin = null,
ShapeBorder shape = null
) {
D.assert(elevation == null || elevation >= 0.0f);

public readonly float? elevation;
public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
public readonly ShapeBorder shape;

Color shadowColor = null,
float? elevation = null,
EdgeInsets margin = null,
EdgeInsetsGeometry margin = null,
ShapeBorder shape = null
) {
return new CardTheme(

color: Color.lerp(a?.color, b?.color, t),
shadowColor: Color.lerp(a?.shadowColor, b?.shadowColor, t),
elevation: Mathf.Lerp(a?.elevation ?? 0.0f, b?.elevation ?? 0.0f, t),
margin: EdgeInsets.lerp(a?.margin, b?.margin, t),
margin: EdgeInsetsGeometry.lerp(a?.margin, b?.margin, t),
shape: ShapeBorder.lerp(a?.shape, b?.shape, t)
);
}

properties.add(new ColorProperty("color", color, defaultValue: null));
properties.add(new ColorProperty("shadowColor", shadowColor, defaultValue: null));
properties.add(new DiagnosticsProperty<float?>("elevation", elevation, defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsets>("margin", margin, defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("margin", margin, defaultValue: null));
properties.add(new DiagnosticsProperty<ShapeBorder>("shape", shape, defaultValue: null));
}
}

76
com.unity.uiwidgets/Runtime/material/chip.cs


Color backgroundColor { get; }
EdgeInsets padding { get; }
EdgeInsetsGeometry padding { get; }
EdgeInsets labelPadding { get; }
EdgeInsetsGeometry labelPadding { get; }
MaterialTapTargetSize? materialTapTargetSize { get; }

Widget avatar = null,
Widget label = null,
TextStyle labelStyle = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
Widget deleteIcon = null,
VoidCallback onDeleted = null,
Color deleteIconColor = null,

FocusNode focusNode = null,
bool autofocus = false,
Color backgroundColor = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
MaterialTapTargetSize? materialTapTargetSize = null,
float? elevation = null,

TextStyle _labelStyle;
public EdgeInsets labelPadding {
public EdgeInsetsGeometry labelPadding {
EdgeInsets _labelPadding;
EdgeInsetsGeometry _labelPadding;
public ShapeBorder shape {
get { return _shape; }

Color _backgroundColor;
public EdgeInsets padding {
public EdgeInsetsGeometry padding {
EdgeInsets _padding;
EdgeInsetsGeometry _padding;
public Widget deleteIcon {
get { return _deleteIcon; }

Widget avatar = null,
Widget label = null,
TextStyle labelStyle = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
bool selected = false,
bool isEnabled = true,
ValueChanged<bool> onSelected = null,

FocusNode focusNode = null,
bool autofocus = false,
Color backgroundColor = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
MaterialTapTargetSize? materialTapTargetSize = null,
float? elevation = null,

TextStyle _labelStyle;
public EdgeInsets labelPadding {
public EdgeInsetsGeometry labelPadding {
EdgeInsets _labelPadding;
EdgeInsetsGeometry _labelPadding;
public bool? selected {
get { return _selected; }

Color _backgroundColor;
public EdgeInsets padding {
public EdgeInsetsGeometry padding {
EdgeInsets _padding;
EdgeInsetsGeometry _padding;
public VisualDensity visualDensity { get; }

Widget avatar = null,
Widget label = null,
TextStyle labelStyle = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
ValueChanged<bool> onSelected = null,
float? pressElevation = null,
bool? selected = null,

FocusNode focusNode = null,
bool autofocus = false,
Color backgroundColor = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
MaterialTapTargetSize? materialTapTargetSize = null,
float? elevation = null,

TextStyle _labelStyle;
public EdgeInsets labelPadding {
public EdgeInsetsGeometry labelPadding {
EdgeInsets _labelPadding;
EdgeInsetsGeometry _labelPadding;
public ValueChanged<bool> onSelected {
get { return _onSelected; }

Color _backgroundColor;
public EdgeInsets padding {
public EdgeInsetsGeometry padding {
EdgeInsets _padding;
EdgeInsetsGeometry _padding;
public VisualDensity visualDensity { get; }

Widget avatar = null,
Widget label = null,
TextStyle labelStyle = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
bool selected = false,
ValueChanged<bool> onSelected = null,
float? pressElevation = null,

FocusNode focusNode = null,
bool autofocus = false,
Color backgroundColor = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
MaterialTapTargetSize? materialTapTargetSize = null,
float? elevation = null,

TextStyle _labelStyle;
public EdgeInsets labelPadding {
public EdgeInsetsGeometry labelPadding {
EdgeInsets _labelPadding;
EdgeInsetsGeometry _labelPadding;
public bool? selected {
get { return _selected; }

Color _backgroundColor;
public EdgeInsets padding {
public EdgeInsetsGeometry padding {
EdgeInsets _padding;
EdgeInsetsGeometry _padding;
public VisualDensity visualDensity { get; }

Widget avatar = null,
Widget label = null,
TextStyle labelStyle = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
VoidCallback onPressed = null,
float? pressElevation = null,
string tooltip = null,

bool autofocus = false,
Color backgroundColor = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
MaterialTapTargetSize? materialTapTargetSize = null,
float? elevation = null,

TextStyle _labelStyle;
public EdgeInsets labelPadding {
public EdgeInsetsGeometry labelPadding {
EdgeInsets _labelPadding;
EdgeInsetsGeometry _labelPadding;
public VoidCallback onPressed {
get { return _onPressed; }

Color _backgroundColor;
public EdgeInsets padding {
public EdgeInsetsGeometry padding {
EdgeInsets _padding;
EdgeInsetsGeometry _padding;
public VisualDensity visualDensity { get; }

Widget avatar = null,
Widget label = null,
TextStyle labelStyle = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
Widget deleteIcon = null,
VoidCallback onDeleted = null,
Color deleteIconColor = null,

TextStyle _labelStyle;
public EdgeInsets labelPadding {
public EdgeInsetsGeometry labelPadding {
EdgeInsets _labelPadding;
EdgeInsetsGeometry _labelPadding;
public Widget deleteIcon {
get { return _deleteIcon; }

Color _backgroundColor;
public EdgeInsets padding {
public EdgeInsetsGeometry padding {
EdgeInsets _padding;
EdgeInsetsGeometry _padding;
public VisualDensity visualDensity { get; }

24
com.unity.uiwidgets/Runtime/material/chip_theme.cs


Color selectedShadowColor = null,
bool? showCheckmark = null,
Color checkmarkColor = null,
EdgeInsets labelPadding = null,
EdgeInsets padding = null,
EdgeInsetsGeometry labelPadding = null,
EdgeInsetsGeometry padding = null,
ShapeBorder shape = null,
TextStyle labelStyle = null,
TextStyle secondaryLabelStyle = null,

const int selectAlpha = 0x3d; // 12% + 12% = 24%
const int textLabelAlpha = 0xde; // 87%
ShapeBorder shape = new StadiumBorder();
EdgeInsets labelPadding = EdgeInsets.symmetric(horizontal: 8.0f);
EdgeInsets padding = EdgeInsets.all(4.0f);
EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 8.0f);
EdgeInsetsGeometry padding = EdgeInsets.all(4.0f);
primaryColor = primaryColor ?? (brightness == Brightness.light ? Colors.black : Colors.white);
Color backgroundColor = primaryColor.withAlpha(backgroundAlpha);

public readonly Color checkmarkColor;
public readonly EdgeInsets labelPadding;
public readonly EdgeInsetsGeometry labelPadding;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly ShapeBorder shape;

Color shadowColor = null,
Color selectedShadowColor = null,
Color checkmarkColor = null,
EdgeInsets labelPadding = null,
EdgeInsets padding = null,
EdgeInsetsGeometry labelPadding = null,
EdgeInsetsGeometry padding = null,
ShapeBorder shape = null,
TextStyle labelStyle = null,
TextStyle secondaryLabelStyle = null,

shadowColor: Color.lerp(a?.shadowColor, b?.shadowColor, t),
selectedShadowColor: Color.lerp(a?.selectedShadowColor, b?.selectedShadowColor, t),
checkmarkColor: Color.lerp(a?.checkmarkColor, b?.checkmarkColor, t),
labelPadding: EdgeInsets.lerp(a?.labelPadding, b?.labelPadding, t),
padding: EdgeInsets.lerp(a?.padding, b?.padding, t),
labelPadding: EdgeInsetsGeometry.lerp(a?.labelPadding, b?.labelPadding, t),
padding: EdgeInsetsGeometry.lerp(a?.padding, b?.padding, t),
shape: ShapeBorder.lerp(a?.shape, b?.shape, t),
labelStyle: TextStyle.lerp(a?.labelStyle, b?.labelStyle, t),
secondaryLabelStyle: TextStyle.lerp(a?.secondaryLabelStyle, b?.secondaryLabelStyle, t),

defaultValue: defaultData.selectedShadowColor));
properties.add(new ColorProperty("checkMarkColor", checkmarkColor,
defaultValue: defaultData.checkmarkColor));
properties.add(new DiagnosticsProperty<EdgeInsets>("labelPadding", labelPadding,
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("labelPadding", labelPadding,
new DiagnosticsProperty<EdgeInsets>("padding", padding, defaultValue: defaultData.padding));
new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding, defaultValue: defaultData.padding));
properties.add(new DiagnosticsProperty<ShapeBorder>("shape", shape, defaultValue: defaultData.shape));
properties.add(new DiagnosticsProperty<TextStyle>("labelStyle", labelStyle,
defaultValue: defaultData.labelStyle));

10
com.unity.uiwidgets/Runtime/material/data_table.cs


ValueChanged<bool?> onCheckboxChanged = null
) {
Widget contents = new Padding(
//TODO: update EdgeInsets
padding: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(start: horizontalMargin,
padding: EdgeInsetsDirectional.only(start: horizontalMargin,
end: horizontalMargin / 2.0f),
child: new Center(
child: new Checkbox(

children: rowChild
);
label = new Container(
// TODO: udpate to EdgetInsets
padding: (EdgeInsets) padding,
padding: padding,
height: headingRowHeight,
alignment: numeric ?? false
? Alignment.centerRight

}
label = new Container(
padding: (EdgeInsets) padding,
padding: padding,
height: dataRowHeight,
alignment: numeric ? Alignment.centerRight : (AlignmentGeometry) AlignmentDirectional.centerStart,
child: new DefaultTextStyle(

bool _down;
static readonly Animatable<float> _turnTween =
new Tween<float>(begin: 0.0f, end: Mathf.PI).chain(new CurveTween(curve: Curves.easeIn));
new FloatTween(begin: 0.0f, end: Mathf.PI).chain(new CurveTween(curve: Curves.easeIn));
public override void initState() {
base.initState();

10
com.unity.uiwidgets/Runtime/material/dialog.cs


public AlertDialog(
Key key = null,
Widget title = null,
EdgeInsets titlePadding = null,
EdgeInsetsGeometry titlePadding = null,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
TextStyle contentTextStyle = null,
List<Widget> actions = null,
EdgeInsetsGeometry actionsPadding = null,

}
public readonly Widget title;
public readonly EdgeInsets titlePadding;
public readonly EdgeInsetsGeometry titlePadding;
public readonly EdgeInsets contentPadding;
public readonly EdgeInsetsGeometry contentPadding;
public readonly TextStyle contentTextStyle;
public readonly List<Widget> actions;
public readonly EdgeInsetsGeometry actionsPadding;

if (actions != null) {
actionsWidget = new Padding(
padding: (EdgeInsets)actionsPadding,
padding: actionsPadding,
child: new ButtonBar(
buttonPadding: buttonPadding,
overflowDirection: actionsOverflowDirection,

3
com.unity.uiwidgets/Runtime/material/divider.cs


child: new Center(
child: new Container(
width: thickness,
//TODO: update to EdgeInsetsGeometry
margin: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(top: indent,
margin: EdgeInsetsDirectional.only(top: indent,
bottom: endIndent),
decoration: new BoxDecoration(
border: new Border(

8
com.unity.uiwidgets/Runtime/material/drawer_header.cs


public DrawerHeader(
Key key = null,
Decoration decoration = null,
EdgeInsets margin = null,
EdgeInsets padding = null,
EdgeInsetsGeometry margin = null,
EdgeInsetsGeometry padding = null,
TimeSpan? duration = null,
Curve curve = null,
Widget child = null

public readonly Decoration decoration;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
public readonly TimeSpan duration;

21
com.unity.uiwidgets/Runtime/material/dropdown.cs


public const float _kMenuItemHeight = kMinInteractiveDimension;
public const float _kDenseButtonHeight = 24.0f;
public static readonly EdgeInsets _kMenuItemPadding = EdgeInsets.symmetric(horizontal: 16.0f);
public static readonly EdgeInsets _kAlignedButtonPadding = EdgeInsets.only(left: 16.0f, right: 4.0f);
public static readonly EdgeInsetsGeometry _kAlignedButtonPadding = EdgeInsets.only(left: 16.0f, right: 4.0f);
public static readonly EdgeInsets _kUnalignedMenuMargin = EdgeInsets.only(left: 16.0f, right: 24.0f);
public static readonly EdgeInsetsGeometry _kUnalignedMenuMargin = EdgeInsets.only(left: 16.0f, right: 24.0f);
public delegate List<Widget> DropdownButtonBuilder(BuildContext context);
}

class _DropdownRoute<T> : PopupRoute<_DropdownRouteResult<T>> {
public _DropdownRoute(
List<_MenuItem<T>> items = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Rect buttonRect = null,
int? selectedIndex = null,
int elevation = 8,

}
public readonly List<_MenuItem<T>> items;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly Rect buttonRect;
public readonly int? selectedIndex;
public readonly int elevation;

_DropdownRoute<T> route = null,
BoxConstraints constraints = null,
List<_MenuItem<T>> items = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Rect buttonRect = null,
int? selectedIndex = null,
int elevation = 0,

public readonly _DropdownRoute<T> route;
public readonly BoxConstraints constraints;
public readonly List<_MenuItem<T>> items;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly Rect buttonRect;
public readonly int? selectedIndex;
public readonly int elevation;

void _handleTap() {
RenderBox itemBox = (RenderBox) context.findRenderObject();
Rect itemRect = itemBox.localToGlobal(Offset.zero) & itemBox.size;
EdgeInsets menuMargin = ButtonTheme.of(context).alignedDropdown
TextDirection textDirection = Directionality.of(context);
EdgeInsetsGeometry menuMargin = ButtonTheme.of(context).alignedDropdown
? material_._kAlignedMenuMargin
: material_._kUnalignedMenuMargin;

D.assert(_dropdownRoute == null);
_dropdownRoute = new _DropdownRoute<T>(
items: menuItems,
buttonRect: menuMargin.inflateRect(itemRect),
padding: material_._kMenuItemPadding,
buttonRect: menuMargin.resolve(textDirection).inflateRect(itemRect),
padding: material_._kMenuItemPadding.resolve(textDirection),
selectedIndex: _selectedIndex ?? 0,
elevation: widget.elevation,
theme: Theme.of(context, shadowThemeOnly: true),

));
}
EdgeInsets padding = ButtonTheme.of(context).alignedDropdown
EdgeInsetsGeometry padding = ButtonTheme.of(context).alignedDropdown
? material_._kAlignedButtonPadding
: material_._kUnalignedButtonPadding;

4
com.unity.uiwidgets/Runtime/material/expand_icon.cs


bool isExpanded = false,
float size = 24.0f,
ValueChanged<bool> onPressed = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Color color = null,
Color disabledColor = null,
Color expandedColor = null

public readonly ValueChanged<bool> onPressed;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly Color color;

3
com.unity.uiwidgets/Runtime/material/expansion_panel.cs


Widget expandIconContainer = new Container(
//TODO: update to EdgeInsetsGeometry
//margin: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(end: 8.0f),
margin: EdgeInsetsDirectional.only(end: 8.0f),
child: new ExpandIcon(
isExpanded: _isChildExpanded(expandIndex),
padding: EdgeInsets.all(16.0f),

6
com.unity.uiwidgets/Runtime/material/flat_button.cs


Color highlightColor = null,
Color splashColor = null,
Brightness? colorBrightness = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
ShapeBorder shape = null,
Clip clipBehavior = Clip.none,

Color highlightColor = null,
Color splashColor = null,
Brightness? colorBrightness = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
ShapeBorder shape = null,
Clip clipBehavior = Clip.none,
FocusNode focusNode = null,

Color highlightColor = null,
Color splashColor = null,
Brightness? colorBrightness = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
ShapeBorder shape = null,
Clip clipBehavior = Clip.none,
FocusNode focusNode = null,

4
com.unity.uiwidgets/Runtime/material/flexible_space_bar.cs


public readonly List<StretchMode> stretchModes;
public readonly EdgeInsets titlePadding;
public readonly EdgeInsetsGeometry titlePadding;
public static Widget createSettings(
float? toolbarOpacity = null,

color: titleStyle.color.withOpacity(toolbarOpacity));
bool effectiveCenterTitle = _getEffectiveCenterTitle(theme).Value;
EdgeInsets padding = widget.titlePadding ??
EdgeInsetsGeometry padding = widget.titlePadding ??
EdgeInsets.only(
left: effectiveCenterTitle ? 0.0f : 72.0f,
bottom: 16.0f

10
com.unity.uiwidgets/Runtime/material/grid_tile_bar.cs


var expandChildren = new List<widgets.Widget>();
if (leading != null) {
//TODO: EdgeInsetsGeometry
padding: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(end: 8.0f), child:
leading));
padding: EdgeInsetsDirectional.only(end: 8.0f), child: leading));
}
if (title != null && subtitle != null) {

));
if (trailing != null) {
//TODO: EdgeInsetsGeometry
padding: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(start: 8.0f),
padding: EdgeInsetsDirectional.only(start: 8.0f),
//TODO: EdgeInsetsGeometry
padding: (EdgeInsets) (EdgeInsetsGeometry) padding,
padding: padding,
decoration: decoration,
height: (title != null && subtitle != null) ? 68.0f : 48.0f,
child: new Theme(

4
com.unity.uiwidgets/Runtime/material/icon_button.cs


Key key = null,
float iconSize = 24.0f,
VisualDensity visualDensity = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Alignment alignment = null,
Widget icon = null,
Color color = null,

public readonly VisualDensity visualDensity;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly Alignment alignment;

14
com.unity.uiwidgets/Runtime/material/ink_decoration.cs


public class Ink : StatefulWidget {
public Ink(
Key key = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Color color = null,
Decoration decoration = null,
float? width = null,

public static Ink image(
Key key = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
ImageProvider image = null,
ImageErrorListener onImageError = null,
ColorFilter colorFilter = null,

public readonly Widget child;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly Decoration decoration;

public EdgeInsets _paddingIncludingDecoration {
public EdgeInsetsGeometry _paddingIncludingDecoration {
EdgeInsets decorationPadding = (EdgeInsets) decoration.padding;
EdgeInsetsGeometry decorationPadding = decoration.padding;
if (padding == null) {
return decorationPadding;
}

public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(new DiagnosticsProperty<EdgeInsets>("padding", padding, defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding, defaultValue: null));
properties.add(new DiagnosticsProperty<Decoration>("bg", decoration, defaultValue: null));
}

}
Widget current = widget.child;
EdgeInsets effectivePadding = widget._paddingIncludingDecoration;
EdgeInsetsGeometry effectivePadding = widget._paddingIncludingDecoration;
if (effectivePadding != null) {
current = new Padding(
padding: effectivePadding,

24
com.unity.uiwidgets/Runtime/material/input_decorator.cs


class _Decoration : IEquatable<_Decoration> {
public _Decoration(
EdgeInsets contentPadding,
EdgeInsetsGeometry contentPadding,
bool isCollapsed,
float floatingLabelHeight,
float floatingLabelProgress,

this.container = container;
}
public readonly EdgeInsets contentPadding;
public readonly EdgeInsetsGeometry contentPadding;
public readonly bool isCollapsed;
public readonly float floatingLabelHeight;
public readonly float floatingLabelProgress;

return _textAlignVertical;
}
set {
D.assert(value != null);
if (_textAlignVertical == value) {
return;
}

}
public EdgeInsets contentPadding {
get { return decoration.contentPadding; }
get { return (EdgeInsets) decoration.contentPadding; }
}
float _layoutLineBox(RenderBox box, BoxConstraints constraints) {

) : base(key: key) {
D.assert(decoration != null);
D.assert(textDirection != null);
D.assert(textAlignVertical != null);
D.assert(textBaseline != null);
D.assert(expands != null);
this.decoration = decoration;

}
TextDirection textDirection = Directionality.of(context);
EdgeInsets decorationContentPadding = decoration.contentPadding;
EdgeInsets decorationContentPadding = decoration.contentPadding?.resolve(textDirection);
EdgeInsets contentPadding;
float? floatingLabelHeight;
if (decoration.isCollapsed) {

bool? hasFloatingPlaceholder = true,
FloatingLabelBehavior? floatingLabelBehavior = FloatingLabelBehavior.auto,
bool? isDense = null,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
Widget prefixIcon = null,
BoxConstraints prefixIconConstraints = null,
Widget prefix = null,

public readonly bool? isDense;
public readonly EdgeInsets contentPadding;
public readonly EdgeInsetsGeometry contentPadding;
public bool isCollapsed;

bool? hasFloatingPlaceholder = null,
FloatingLabelBehavior? floatingLabelBehavior = null,
bool? isDense = null,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
Widget prefixIcon = null,
Widget prefix = null,
string prefixText = null,

bool? hasFloatingPlaceholder = true,
FloatingLabelBehavior? floatingLabelBehavior = FloatingLabelBehavior.auto,
bool? isDense = false,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
bool? isCollapsed = false,
TextStyle prefixStyle = null,
TextStyle suffixStyle = null,

public readonly bool? isDense;
public readonly EdgeInsets contentPadding;
public readonly EdgeInsetsGeometry contentPadding;
public readonly bool? isCollapsed;

bool? hasFloatingPlaceholder = null,
FloatingLabelBehavior? floatingLabelBehavior = null,
bool? isDense = null,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
bool? isCollapsed = null,
TextStyle prefixStyle = null,
TextStyle suffixStyle = null,

properties.add(new DiagnosticsProperty<FloatingLabelBehavior?>("floatingLabelBehavior",
floatingLabelBehavior, defaultValue: defaultTheme.floatingLabelBehavior));
properties.add(new DiagnosticsProperty<bool?>("isDense", isDense, defaultValue: defaultTheme.isDense));
properties.add(new DiagnosticsProperty<EdgeInsets>("contentPadding", contentPadding,
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("contentPadding", contentPadding,
defaultValue: defaultTheme.contentPadding));
properties.add(new DiagnosticsProperty<bool?>("isCollapsed", isCollapsed,
defaultValue: defaultTheme.isCollapsed));

13
com.unity.uiwidgets/Runtime/material/list_tile.cs


Color selectedColor = null,
Color iconColor = null,
Color textColor = null,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
Widget child = null) : base(key: key, child: child) {
this.dense = dense;
this.style = style;

Color selectedColor = null,
Color iconColor = null,
Color textColor = null,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
Widget child = null) {
D.assert(child != null);
return new Builder(

public readonly Color textColor;
public readonly EdgeInsets contentPadding;
public readonly EdgeInsetsGeometry contentPadding;
public static ListTileTheme of(BuildContext context) {
ListTileTheme result = context.dependOnInheritedWidgetOfExactType<ListTileTheme>();

Widget trailing = null,
bool isThreeLine = false,
bool? dense = null,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
bool enabled = true,
GestureTapCallback onTap = null,
GestureLongPressCallback onLongPress = null,

public readonly bool? dense;
public readonly EdgeInsets contentPadding;
public readonly EdgeInsetsGeometry contentPadding;
public readonly bool enabled;

}
EdgeInsets _defaultContentPadding = EdgeInsets.symmetric(horizontal: 16.0f);
TextDirection textDirection = Directionality.of(context);
contentPadding ?? tileTheme?.contentPadding ?? _defaultContentPadding;
contentPadding?.resolve(textDirection) ?? tileTheme?.contentPadding?.resolve(textDirection) ?? _defaultContentPadding;
return new InkWell(
onTap: enabled ? onTap : null,

4
com.unity.uiwidgets/Runtime/material/material_button.cs


float? hoverElevation = null,
float? highlightElevation = null,
float? disabledElevation = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
ShapeBorder shape = null,
Clip? clipBehavior = Clip.none,

get { return onPressed != null || onLongPress != null; }
}
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly VisualDensity visualDensity;

10
com.unity.uiwidgets/Runtime/material/outline_button.cs


BorderSide borderSide = null,
Color disabledBorderColor = null,
Color highlightedBorderColor = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
ShapeBorder shape = null,
Clip clipBehavior = Clip.none,

Color highlightedBorderColor = null,
Color disabledBorderColor = null,
BorderSide borderSide = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
ShapeBorder shape = null,
Clip clipBehavior = Clip.none,

Color highlightedBorderColor = null,
Color disabledBorderColor = null,
BorderSide borderSide = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
ShapeBorder shape = null,
Clip clipBehavior = Clip.none,

BorderSide borderSide = null,
Color disabledBorderColor = null,
Color highlightedBorderColor = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
ShapeBorder shape = null,
Clip? clipBehavior = Clip.none,

public readonly BorderSide borderSide;
public readonly Color disabledBorderColor;
public readonly Color highlightedBorderColor;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly VisualDensity visualDensity;
public readonly ShapeBorder shape;
public readonly Clip? clipBehavior;

18
com.unity.uiwidgets/Runtime/material/page_transitions_theme.cs


}
// The scrim obscures the old page by becoming increasingly opaque.
internal static readonly Tween<float> _scrimOpacityTween = new Tween<float>(
internal static readonly Tween<float> _scrimOpacityTween = new FloatTween(
begin: 0.0f,
end: 0.60f
);

public static readonly List<TweenSequenceItem<float>> fastOutExtraSlowInTweenSequenceItems =
new List<TweenSequenceItem<float>> {
new TweenSequenceItem<float>(
tween: new Tween<float>(begin: 0.0f, end: 0.4f)
tween: new FloatTween(begin: 0.0f, end: 0.4f)
tween: new Tween<float>(begin: 0.4f, end: 1.0f)
tween: new FloatTween(begin: 0.4f, end: 1.0f)
.chain(new CurveTween(curve: new Cubic(0.208333f, 0.82f, 0.25f, 1.0f))),
weight: 1.0f - 0.166666f
)

.chain(new CurveTween(curve: new Interval(0.2075f, 0.4175f))));
Animation<float> _forwardEndScreenScaleTransition = widget.animation.drive(
new Tween<float>(begin: 0.85f, end: 1.00f)
new FloatTween(begin: 0.85f, end: 1.00f)
new Tween<float>(begin: 1.00f, end: 1.05f)
new FloatTween(begin: 1.00f, end: 1.05f)
new Tween<float>(begin: 0.0f, end: 1.00f)
new FloatTween(begin: 0.0f, end: 1.00f)
new Tween<float>(begin: 1.00f, end: 1.10f)
new FloatTween(begin: 1.00f, end: 1.10f)
new Tween<float>(begin: 0.9f, end: 1.0f)
new FloatTween(begin: 0.9f, end: 1.0f)
new Tween<float>(begin: 0.0f, end: 1.00f)
new FloatTween(begin: 0.0f, end: 1.00f)
.chain(new CurveTween(curve: new Interval(1 - 0.2075f, 1 - 0.0825f))));
return new AnimatedBuilder(

6
com.unity.uiwidgets/Runtime/material/paginated_data_table.cs


headerWidgets.AddRange(
widget.actions.Select((Widget action) => {
return new Padding(
// TODO: up EdgeInsetsGeometry
padding: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(
padding: EdgeInsetsDirectional.only(
start: 24.0f - 8.0f * 2.0f),
child: action
);

height: 64.0f,
color: _selectedRowCount > 0 ? themeData.secondaryHeaderColor : null,
child: new Padding(
//TODO: update EdgeInsets
padding: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(
padding: EdgeInsetsDirectional.only(
start: startPadding, end: 14.0f),
child: new Row(
mainAxisAlignment: MainAxisAlignment.end,

6
com.unity.uiwidgets/Runtime/material/pickers/calendar_date_picker.cs


}
return new Container(
//TODO: update to EdgeInsetsGeometry
padding: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(start: 16, end: 4),
padding: EdgeInsetsDirectional.only(start: 16, end: 4),
height: material_._subHeaderHeight,
child: new Row(
children: rowChildren

return new Column(
children: new List<Widget> {
new Container(
//TODO: update EdgeInsetsGeometry
padding: (EdgeInsets) (EdgeInsetsGeometry) EdgeInsetsDirectional.only(start: 16, end: 4),
padding: EdgeInsetsDirectional.only(start: 16, end: 4),
height: material_._subHeaderHeight,
child:
new Row(

2
com.unity.uiwidgets/Runtime/material/pickers/date_picker_dialog.cs


public static readonly Size _inputLandscapeDialogSize = new Size(496f, 160.0f);
public static readonly TimeSpan _dialogSizeAnimationDuration = new TimeSpan(0, 0, 0, 0, 200);
public Future<DateTime> showDatePicker(
public static Future<DateTime> showDatePicker(
BuildContext context,
DateTime initialDate,
DateTime firstDate,

14
com.unity.uiwidgets/Runtime/material/popup_menu.cs


}
public class PopupMenuDivider : PopupMenuEntry<object> {
public class PopupMenuDivider<T> : PopupMenuEntry<T> {
public PopupMenuDivider(Key key = null, float height = material_._kMenuDividerHeight) : base(key: key) {
_height = height;
}

get { return _height; }
}
public override bool represents(object value) {
public override bool represents(T value) {
return new _PopupMenuDividerState();
return new _PopupMenuDividerState<T>();
class _PopupMenuDividerState : State<PopupMenuDivider> {
class _PopupMenuDividerState<T> : State<PopupMenuDivider<T>> {
public override Widget build(BuildContext context) {
return new Divider(height: widget.height);
}

}
}
class CheckedPopupMenuItem<T> : PopupMenuItem<T> {
public class CheckedPopupMenuItem<T> : PopupMenuItem<T> {
public CheckedPopupMenuItem(
Key key = null,
T value = default,

PopupMenuCanceled onCanceled = null,
string tooltip = null,
float? elevation = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Widget child = null,
Icon icon = null,
Offset offset = null,

public readonly float? elevation;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly Widget child;

8
com.unity.uiwidgets/Runtime/material/raised_button.cs


float? hoverElevation = null,
float? highlightElevation = null,
float? disabledElevation = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
VisualDensity visualDensity = null,
ShapeBorder shape = null,
Clip? clipBehavior = Clip.none,

Clip? clipBehavior = null,
FocusNode focusNode = null,
bool autofocus = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
MaterialTapTargetSize? materialTapTargetSize = null,
TimeSpan? animationDuration = null,
Widget icon = null,

defaultValue: null));
properties.add(new DiagnosticsProperty<float?>("disabledElevation", disabledElevation,
defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsets>("padding", padding, defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding, defaultValue: null));
properties.add(new DiagnosticsProperty<ShapeBorder>("shape", shape, defaultValue: null));
properties.add(new DiagnosticsProperty<MaterialTapTargetSize?>("materialTapTargetSize",
materialTapTargetSize, defaultValue: null));

Clip? clipBehavior = Clip.none,
FocusNode focusNode = null,
bool autofocus = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
MaterialTapTargetSize? materialTapTargetSize = null,
TimeSpan? animationDuration = null,
Widget icon = null,

2
com.unity.uiwidgets/Runtime/material/selectable_text.cs


public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add( new DiagnosticsProperty<String>("data", data, defaultValue: null));
properties.add( new DiagnosticsProperty<string>("data", data, defaultValue: null));
properties.add( new DiagnosticsProperty<FocusNode>("focusNode", focusNode, defaultValue: null));
properties.add( new DiagnosticsProperty<TextStyle>("style", style, defaultValue: null));
properties.add( new DiagnosticsProperty<bool>("autofocus", autofocus, defaultValue: false));

4
com.unity.uiwidgets/Runtime/material/slider_theme.cs


D.assert(sliderTheme.thumbColor != null);
Canvas canvas = context.canvas;
Tween<float> radiusTween = new Tween<float>(
Tween<float> radiusTween = new FloatTween(
begin: _disabledThumbRadius,
end: enabledThumbRadius
);

D.assert(sliderTheme.overlappingShapeStrokeColor != null);
D.assert(enableAnimation != null);
Canvas canvas = context.canvas;
Tween<float> radiusTween = new Tween<float>(
Tween<float> radiusTween = new FloatTween(
begin: _disabledThumbRadius,
end: enabledThumbRadius
);

4
com.unity.uiwidgets/Runtime/material/swtich_list_tile.cs


Widget subtitle = null,
bool isThreeLine = false,
bool? dense = null,
EdgeInsets contentPadding = null,
EdgeInsetsGeometry contentPadding = null,
Widget secondary = null,
bool selected = false,
_SwitchListTileType _switchListTileType = _SwitchListTileType.material

public readonly bool? dense;
public readonly EdgeInsets contentPadding;
public readonly EdgeInsetsGeometry contentPadding;
public readonly bool selected;

8
com.unity.uiwidgets/Runtime/material/tab_bar_theme.cs


Decoration indicator = null,
TabBarIndicatorSize? indicatorSize = null,
Color labelColor = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
TextStyle labelStyle = null,
Color unselectedLabelColor = null,
TextStyle unselectedLabelStyle = null) {

public readonly Color labelColor;
public readonly EdgeInsets labelPadding;
public readonly EdgeInsetsGeometry labelPadding;
public readonly TextStyle labelStyle;

Decoration indicator = null,
TabBarIndicatorSize? indicatorSize = null,
Color labelColor = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
TextStyle labelStyle = null,
Color unselectedLabelColor = null,
TextStyle unselectedLabelStyle = null

indicator: Decoration.lerp(a.indicator, b.indicator, t),
indicatorSize: t < 0.5 ? a.indicatorSize : b.indicatorSize,
labelColor: Color.lerp(a.labelColor, b.labelColor, t),
labelPadding: EdgeInsets.lerp(a.labelPadding, b.labelPadding, t),
labelPadding: EdgeInsetsGeometry.lerp(a.labelPadding, b.labelPadding, t),
labelStyle: TextStyle.lerp(a.labelStyle, b.labelStyle, t),
unselectedLabelColor: Color.lerp(a.unselectedLabelColor, b.unselectedLabelColor, t),
unselectedLabelStyle: TextStyle.lerp(a.unselectedLabelStyle, b.unselectedLabelStyle, t)

17
com.unity.uiwidgets/Runtime/material/tab_indicator.cs


public class UnderlineTabIndicator : Decoration {
public UnderlineTabIndicator(
BorderSide borderSide = null,
EdgeInsets insets = null) {
EdgeInsetsGeometry insets = null) {
borderSide = borderSide ?? new BorderSide(width: 2.0f, color: Colors.white);
insets = insets ?? EdgeInsets.zero;
this.borderSide = borderSide;

public readonly BorderSide borderSide;
public readonly EdgeInsets insets;
public readonly EdgeInsetsGeometry insets;
public override Decoration lerpFrom(Decoration a, float t) {
if (a is UnderlineTabIndicator) {

insets: EdgeInsets.lerp(_a.insets, insets, t)
insets: EdgeInsetsGeometry.lerp(_a.insets, insets, t)
);
}

UnderlineTabIndicator _b = (UnderlineTabIndicator) b;
return new UnderlineTabIndicator(
borderSide: BorderSide.lerp(borderSide, _b.borderSide, t),
insets: EdgeInsets.lerp(insets, _b.insets, t)
insets: EdgeInsetsGeometry.lerp(insets, _b.insets, t)
);
}

get { return decoration.borderSide; }
}
public EdgeInsets insets {
public EdgeInsetsGeometry insets {
Rect _indicatorRectFor(Rect rect) {
Rect _indicatorRectFor(Rect rect, TextDirection textDirection) {
Rect indicator = insets.deflateRect(rect);
Rect indicator = insets.resolve(textDirection).deflateRect(rect);
return Rect.fromLTWH(
indicator.left,
indicator.bottom - borderSide.width,

D.assert(configuration != null);
D.assert(configuration.size != null);
Rect rect = offset & configuration.size;
Rect indicator = _indicatorRectFor(rect).deflate(borderSide.width / 2.0f);
TextDirection textDirection = configuration.textDirection;
Rect indicator = _indicatorRectFor(rect, textDirection).deflate(borderSide.width / 2.0f);
Paint paint = borderSide.toPaint();
paint.strokeCap = StrokeCap.square;
canvas.drawLine(indicator.bottomLeft, indicator.bottomRight, paint);

12
com.unity.uiwidgets/Runtime/material/tabs.cs


Key key = null,
string text = null,
Widget icon = null,
EdgeInsets iconMargin = null,
EdgeInsetsGeometry iconMargin = null,
Widget child = null
) : base(key: key) {
D.assert(text != null || child != null || icon != null);

public readonly Widget icon;
public readonly EdgeInsets iconMargin;
public readonly EdgeInsetsGeometry iconMargin;
Widget _buildLabelText() {
return child ?? new Text(text, softWrap: false, overflow: TextOverflow.fade);

bool isScrollable = false,
Color indicatorColor = null,
float indicatorWeight = 2.0f,
EdgeInsets indicatorPadding = null,
EdgeInsetsGeometry indicatorPadding = null,
EdgeInsets labelPadding = null,
EdgeInsetsGeometry labelPadding = null,
Color unselectedLabelColor = null,
TextStyle unselectedLabelStyle = null,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,

public readonly float indicatorWeight;
public readonly EdgeInsets indicatorPadding;
public readonly EdgeInsetsGeometry indicatorPadding;
public readonly Decoration indicator;

public readonly TextStyle labelStyle;
public readonly EdgeInsets labelPadding;
public readonly EdgeInsetsGeometry labelPadding;
public readonly TextStyle unselectedLabelStyle;

2
com.unity.uiwidgets/Runtime/material/text_field.cs


properties.add(new ColorProperty("cursorColor", cursorColor, defaultValue: null));
properties.add(new DiagnosticsProperty<Brightness?>("keyboardAppearance", keyboardAppearance,
defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsets>("scrollPadding", scrollPadding,
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("scrollPadding", scrollPadding,
defaultValue: EdgeInsets.all(20.0f)));
properties.add(new FlagProperty("selectionEnabled", value: selectionEnabled, defaultValue: true,
ifFalse: "selection disabled"));

2
com.unity.uiwidgets/Runtime/material/time_picker.cs


);
//the end will be set to be valid value later, we just make it 1f by default here
_thetaTween = new Tween<float>(begin: _getThetaForTime(widget.selectedTime), end: 1f);
_thetaTween = new FloatTween(begin: _getThetaForTime(widget.selectedTime), end: 1f);
_theta = _thetaController
.drive(new CurveTween(curve: Curves.fastOutSlowIn))
.drive(_thetaTween);

24
com.unity.uiwidgets/Runtime/material/tooltip.cs


Key key = null,
string message = null,
float? height = null,
EdgeInsets padding = null,
EdgeInsets margin = null,
EdgeInsetsGeometry padding = null,
EdgeInsetsGeometry margin = null,
float? verticalOffset = null,
bool? preferBelow = null,
bool? excludeFromSemantics = null,

public readonly float? height;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
public readonly float? verticalOffset;

static float _defaultTooltipHeight = 32.0f;
static float _defaultVerticalOffset = 24.0f;
static bool _defaultPreferBelow = true;
static EdgeInsets _defaultPadding = EdgeInsets.symmetric(horizontal: 16.0f);
static EdgeInsets _defaultMargin = EdgeInsets.all(0.0f);
static EdgeInsetsGeometry _defaultPadding = EdgeInsets.symmetric(horizontal: 16.0f);
static EdgeInsetsGeometry _defaultMargin = EdgeInsets.all(0.0f);
static TimeSpan _fadeInDuration = new TimeSpan(0,0,0,0, 150);
static TimeSpan _fadeOutDuration =new TimeSpan(0,0,0,0, 75);
static TimeSpan _defaultShowDuration =new TimeSpan(0,0,0,0,1500);

float height;
EdgeInsets padding;
EdgeInsetsGeometry padding;
EdgeInsets margin;
EdgeInsetsGeometry margin;
Decoration decoration;

Key key = null,
string message = null,
float? height = null,
EdgeInsets padding = null,
EdgeInsets margin = null,
EdgeInsetsGeometry padding = null,
EdgeInsetsGeometry margin = null,
Decoration decoration = null,
TextStyle textStyle = null,
Animation<float> animation = null,

public readonly float? height;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
public readonly Decoration decoration;

16
com.unity.uiwidgets/Runtime/material/tooltip_theme.cs


public class TooltipThemeData : Diagnosticable, IEquatable<TooltipThemeData> {
public TooltipThemeData(
float? height = null,
EdgeInsets padding = null,
EdgeInsets margin = null,
EdgeInsetsGeometry padding = null,
EdgeInsetsGeometry margin = null,
float? verticalOffset = null,
bool? preferBelow = null,
bool? excludeFromSemantics = null,

public readonly float? height;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
public readonly float? verticalOffset;

public TooltipThemeData copyWith(
float? height = null,
EdgeInsets padding = null,
EdgeInsets margin = null,
EdgeInsetsGeometry padding = null,
EdgeInsetsGeometry margin = null,
float? verticalOffset = null,
bool? preferBelow = null,
bool? excludeFromSemantics = null,

return new TooltipThemeData(
height: MathUtils.lerpNullableFloat(a?.height, b?.height, t),
padding: EdgeInsets.lerp(a?.padding, b?.padding, t),
margin: EdgeInsets.lerp(a?.margin, b?.margin, t),
padding: EdgeInsetsGeometry.lerp(a?.padding, b?.padding, t),
margin: EdgeInsetsGeometry.lerp(a?.margin, b?.margin, t),
verticalOffset: MathUtils.lerpNullableFloat(a?.verticalOffset, b?.verticalOffset, t),
preferBelow: t < 0.5f ? a.preferBelow: b.preferBelow,
excludeFromSemantics: t < 0.5f ? a.excludeFromSemantics : b.excludeFromSemantics,

4
com.unity.uiwidgets/Runtime/material/user_accounts_drawer_header.cs


public UserAccountsDrawerHeader(
Key key = null,
Decoration decoration = null,
EdgeInsets margin = null,
EdgeInsetsGeometry margin = null,
Widget currentAccountPicture = null,
List<Widget> otherAccountsPictures = null,
Widget accountName = null,

public readonly Decoration decoration;
public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
public readonly Widget currentAccountPicture;

2
com.unity.uiwidgets/Runtime/material/swtich_list_tile.cs.meta


fileFormatVersion: 2
guid: eeb5dc81b18e644e69b2b89cf48b8f3b
guid: 85561be4b3ea5344283f3996f3e8efc7
MonoImporter:
externalObjects: {}
serializedVersion: 2

4
com.unity.uiwidgets/Runtime/painting/alignment.cs


}
internal static String _stringify(float x, float y) {
internal static string _stringify(float x, float y) {
if (x == -1.0f && y == -1.0f)
return "topLeft";
if (x == 0.0f && y == -1.0f)

return null;
}
internal static String _stringify(double start, double y) {
internal static string _stringify(double start, double y) {
if (start == -1.0f && y == -1.0f)
return "AlignmentDirectional.topStart";
if (start == 0.0f && y == -1.0f)

2
com.unity.uiwidgets/Runtime/painting/border_radius.cs


public abstract BorderRadius resolve(TextDirection? textDirection);
public override string ToString() {
String visual = null, logical = null;
string visual = null, logical = null;
if (_topLeft == _topRight &&
_topRight == _bottomLeft &&
_bottomLeft == _bottomRight) {

2
com.unity.uiwidgets/Runtime/painting/box_border.cs


public override string ToString() {
List<String> arguments = new List<string>();
List<string> arguments = new List<string>();
if
(top != BorderSide.none) {
arguments.Add("top: $top");

4
com.unity.uiwidgets/Runtime/painting/edge_insets.cs


);
}
protected EdgeInsetsGeometry add(EdgeInsetsGeometry other) {
public EdgeInsetsGeometry add(EdgeInsetsGeometry other) {
return _MixedEdgeInsets.fromLRSETB(
_left + other._left,
_right + other._right,

return false;
}
return Equals((EdgeInsets) obj);
return Equals((EdgeInsetsGeometry) obj);
}
public override int GetHashCode() {

6
com.unity.uiwidgets/Runtime/painting/text_style.cs


int? maxLines = null,
TextHeightBehavior textHeightBehavior = null,
Locale locale = null,
String fontFamily = null,
string fontFamily = null,
float? fontSize = null,
FontWeight fontWeight = null,
FontStyle? fontStyle = null,

TextAlign? textAlign = null,
TextDirection? textDirection = null,
float textScaleFactor = 1.0f,
String ellipsis = null,
string ellipsis = null,
String fontFamily = null,
string fontFamily = null,
float? fontSize = null,
FontWeight fontWeight = null,
FontStyle? fontStyle = null,

2
com.unity.uiwidgets/Runtime/rendering/flex.cs


public override string toStringShort() {
String header = base.toStringShort();
string header = base.toStringShort();
if (_overflow is float && _hasOverflow)
header += " OVERFLOWING";
return header;

6
com.unity.uiwidgets/Runtime/rendering/sliver_padding.cs


public class RenderSliverPadding : RenderSliverEdgeInsetsPadding {
public RenderSliverPadding(
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
TextDirection? textDirection = null,
RenderSliver child = null
) {

_resolvedPadding = null;
markNeedsLayout();
}
public EdgeInsets padding {
public EdgeInsetsGeometry padding {
get { return _padding; }
set {
D.assert(value != null);

}
}
EdgeInsets _padding;
EdgeInsetsGeometry _padding;
public TextDirection textDirection {
get { return _textDirection;}

6
com.unity.uiwidgets/Runtime/services/asset_bundle.cs


});
}
public abstract Future<T> loadStructuredData<T>(String key, Func<string, Future<T>> parser);
public abstract Future<T> loadStructuredData<T>(string key, Func<string, Future<T>> parser);
public virtual void evict(String key) {
public virtual void evict(string key) {
}
public override string ToString() => $"{foundation_.describeIdentity(this)}()";

return base.loadString(key);
}
public override Future<T> loadStructuredData<T>(String key, Func<string, Future<T>> parser) {
public override Future<T> loadStructuredData<T>(string key, Func<string, Future<T>> parser) {
D.assert(key != null);
D.assert(parser != null);
if (_structuredDataCache.ContainsKey(key))

172
com.unity.uiwidgets/Runtime/services/keyboard.cs


using Unity.UIWidgets.async2;
using Unity.UIWidgets.gestures;
public delegate RawInputKeyResponse GlobalKeyEventHandlerDelegate(RawKeyEvent rawEvt, bool enableCustomAction = false);
public delegate RawInputKeyResponse GlobalKeyEventHandlerDelegate(RawKeyEvent rawEvt,
bool enableCustomAction = false);
public class RawInputKeyResponse {
public readonly bool swallow;
public readonly char input;

this.input = input;
this.inputAction = inputAction;
}
false,
false,
evt.data.unityEvent.character,
null);
}

interface KeyboardDelegate: IDisposable {
interface KeyboardDelegate : IDisposable {
void setStyle(Dictionary<string, object> args);
void setIMEPos(Offset imeGlobalPos);

bool imeRequired();
TextEditingValue _value;
public void show() {

}
public void setEditableSizeAndTransform(Dictionary<string, object> args) {
//todo
//todo
//todo
//todo
}
Offset _editorWindowPosToScreenPos(Offset position) {

public void setIMEPos(Offset imeGlobalPos) {
var uiWidgetWindowAdapter = Window.instance;
Offset screenPos = uiWidgetWindowAdapter != null
? uiWidgetWindowAdapter.windowPosToScreenPos(imeGlobalPos)
Offset screenPos = uiWidgetWindowAdapter != null
? uiWidgetWindowAdapter.windowPosToScreenPos(imeGlobalPos)
Input.compositionCursorPos = new Vector2(screenPos.dx, screenPos.dy);
}

if (_client == 0) {
return;
}
var currentEvent = Event.current;
var oldValue = _value;
if (currentEvent != null && currentEvent.type == EventType.KeyDown) {
var response = TextInput._handleGlobalInputKey(_client,
new RawKeyDownEvent(new RawKeyEventData(currentEvent)));
if (response.swallow) {
if (response.inputAction != null) {
Window.instance.run(() => { TextInput._performAction(_client, response.inputAction.Value); });
while (!PointerEventConverter.KeyEvent.isEmpty()) {
var currentEvent = PointerEventConverter.KeyEvent.Dequeue();
var oldValue = _value;
if (currentEvent != null && currentEvent.type == EventType.KeyDown) {
var response = TextInput._handleGlobalInputKey(_client,
new RawKeyDownEvent(new RawKeyEventData(currentEvent)));
if (response.swallow) {
if (response.inputAction != null) {
Timer.create(TimeSpan.Zero,
() => { TextInput._performAction(_client, response.inputAction.Value); });
}
if (_validateCharacter(response.input)) {
_value = _value.insert(new string(response.input, 1));
}
if (_validateCharacter(response.input)) {
_value = _value.insert(new string(response.input, 1));
else if (currentEvent.keyCode == KeyCode.Backspace) {
if (_value.selection.isValid) {
_value = _value.deleteSelection(true);
}
} else if (currentEvent.keyCode == KeyCode.Backspace) {
if (_value.selection.isValid) {
_value = _value.deleteSelection(true);
}
} else if (currentEvent.character != '\0') {
_value = _value.clearCompose();
char ch = currentEvent.character;
if (ch == '\r' || ch == 3) {
ch = '\n';
}
else if (currentEvent.character != '\0') {
_value = _value.clearCompose();
char ch = currentEvent.character;
if (ch == '\r' || ch == 3) {
ch = '\n';
}
if (ch == '\n') {
Window.instance.run(() => { TextInput._performAction(_client, TextInputAction.newline); });
if (ch == '\n') {
Timer.create(TimeSpan.Zero, () => { TextInput._performAction(_client, TextInputAction.newline); });
}
if (_validateCharacter(ch)) {
_value = _value.insert(new string(ch, 1));
}
if (_validateCharacter(ch)) {
_value = _value.insert(new string(ch, 1));
else if (!string.IsNullOrEmpty(currentEvent.keyCode.ToString())) {
isIMEInput = true;
_value = _value.compose(currentEvent.keyCode.ToString());
currentEvent.Use();
else if (!string.IsNullOrEmpty(Input.compositionString)) {
isIMEInput = true;
_value = _value.compose(Input.compositionString);
}
currentEvent.Use();
}
if (_value != oldValue) {
if (this.isIMEInput) {
var isIMEInput = this.isIMEInput;
Window.instance.run(() => { TextInput._updateEditingState(_client, _value, isIMEInput); });
this.isIMEInput = false;
}
else {
Window.instance.run(() => { TextInput._updateEditingState(_client, _value); });
if (_value != oldValue) {
if (this.isIMEInput) {
var isIMEInput = this.isIMEInput;
Timer.create(TimeSpan.Zero,
() => { TextInput._updateEditingState(_client, _value, isIMEInput); });
this.isIMEInput = false;
}
else {
Timer.create(TimeSpan.Zero, () => { TextInput._updateEditingState(_client, _value, isIMEInput); });
}
}
}
}

return ch >= ' ' || ch == '\t' || ch == '\r' || ch == 10 || ch == '\n';
}
}
class UnityTouchScreenKeyboardDelegate : KeyboardDelegate, TextInputUpdateListener {
int _client;
string _lastCompositionString;

if (_keyboard.status == TouchScreenKeyboard.Status.Done) {
if (!_screenKeyboardDone) {
_screenKeyboardDone = true;
Window.instance.run(() => {
Timer.create(TimeSpan.Zero, () => {
TextInput._performAction(_client,
TextInputAction.done);
});

: TextSelection.collapsed(0)
);
var changed = _value != newValue;
Window.instance.run(() => {
Timer.create(TimeSpan.Zero, () => {
TextInput._updateEditingState(_client,
_value);
});

}
abstract class AbstractUIWidgetsKeyboardDelegate : KeyboardDelegate {
UIWidgetsMessageManager.instance.
AddChannelMessageDelegate("TextInput", _handleMethodCall);
UIWidgetsMessageManager.instance.AddChannelMessageDelegate("TextInput", _handleMethodCall);
UIWidgetsMessageManager.instance.
RemoveChannelMessageDelegate("TextInput", _handleMethodCall);
UIWidgetsMessageManager.instance.RemoveChannelMessageDelegate("TextInput", _handleMethodCall);
}
public abstract void show();

public abstract void setEditingState(TextEditingValue value);
public void setEditableSizeAndTransform(Dictionary<string, object> args) {
throw new NotImplementedException();
}

public abstract void setClient(int client, TextInputConfiguration configuration);
public abstract void clearClient();
public virtual bool imeRequired() {
return false;
}

/*if (TextInput._currentConnection == null) {
return;
}

throw new UIWidgetsError($"unknown method ${method}");
}
}*/
}
}
#if UNITY_WEBGL
class UIWidgetsWebGLKeyboardDelegate : AbstractUIWidgetsKeyboardDelegate {

}
#endif
#if UNITY_IOS || UNITY_ANDROID
class UIWidgetsTouchScreenKeyboardDelegate : AbstractUIWidgetsKeyboardDelegate {

#elif UNITY_ANDROID
internal static void UIWidgetsTextInputShow() {
using (
AndroidJavaClass pluginClass = new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
AndroidJavaClass pluginClass =
new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
) {
pluginClass.CallStatic("show");
}

using (
AndroidJavaClass pluginClass = new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
AndroidJavaClass pluginClass =
new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
) {
pluginClass.CallStatic("hide");
}

using (
AndroidJavaClass pluginClass = new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
AndroidJavaClass pluginClass =
new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
) {
pluginClass.CallStatic("setClient", client, configuration);

internal static void UIWidgetsTextInputSetTextInputEditingState(string jsonText) {
using (
AndroidJavaClass pluginClass = new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
AndroidJavaClass pluginClass =
new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
) {
pluginClass.CallStatic("setEditingState", jsonText);
}

using (
AndroidJavaClass pluginClass = new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
AndroidJavaClass pluginClass =
new AndroidJavaClass("com.unity.uiwidgets.plugin.editing.TextInputPlugin")
) {
pluginClass.CallStatic("clearClient");
}

#endif
#endif
}

13
com.unity.uiwidgets/Runtime/services/text_input.cs


TextSelection selection = null,
TextRange composing = null) {
selection = selection ?? TextSelection.collapsed(offset: -1);
D.assert(text != null);
this.text = text;
this.composing = composing ?? TextRange.empty;

static int _nextId = 1;
internal readonly int _id;
public void setIMEPos(Offset imeGlobalPos) {
D.assert(attached);
D.assert(imeGlobalPos != null);
D.assert(imeRequired());
TextInput.keyboardDelegate.setIMEPos(imeGlobalPos);
}
public bool imeRequired() {
return TextInput.keyboardDelegate != null && TextInput.keyboardDelegate.imeRequired();
}
public static void debugResetId(int to = 1) {
D.assert(() =>{
_nextId = to;

2
com.unity.uiwidgets/Runtime/ui2/compositing.cs


return true;
}
bool _debugCheckCanBeUsedAsOldLayer(_EngineLayerWrapper layer, String methodName) {
bool _debugCheckCanBeUsedAsOldLayer(_EngineLayerWrapper layer, string methodName) {
D.assert(() => {
if (layer == null) {
return true;

9
com.unity.uiwidgets/Runtime/ui2/pointer.cs


down,
move,
up,
kMouseDown,
kMouseUp,
touch,
mouse,
touch = 0,
mouse = 1,
unknown
keyboard = 4,
unknown,
}
public enum PointerSignalKind {

2
com.unity.uiwidgets/Runtime/ui2/text.cs


public string textInside(string text) {
D.assert(isNormalized);
return text.Substring(start, end);
return text.Substring(start, end - start);
}
public override string ToString() {

2
com.unity.uiwidgets/Runtime/ui2/window.cs


public bool highContrast => (_kHighContrastIndex & _index) != 0;
public override string ToString() {
List<String> features = new List<String>();
List<string> features = new List<string>();
if (accessibleNavigation)
features.Add("accessibleNavigation");
if (invertColors)

17
com.unity.uiwidgets/Runtime/widgets/animated_list.cs


while (min < max) {
int mid = min + ((max - min) >> 1);
T element = sortedList[mid];
int comp = element.compareTo(value);
int comp = element.CompareTo(value);
if (comp == 0) {
return mid;
}

}
}
public class _ActiveItem : Comparable<_ActiveItem> {
public class _ActiveItem : IComparable {
public _ActiveItem(
AnimationController controller,

public int itemIndex;
public int compareTo(_ActiveItem other) {
return itemIndex - other.itemIndex;
}
public int compare(Comparable<_ActiveItem> a, _ActiveItem b) {
return 0;
//throw new NotImplementedException();
public int CompareTo(object other) {
D.assert(GetType() == other.GetType());
return itemIndex - ((_ActiveItem)other).itemIndex;
}
}
public class AnimatedList : StatefulWidget {

shrinkWrap: widget.shrinkWrap,
slivers: new List<Widget>{
new SliverPadding(
padding: (EdgeInsets)widget.padding ?? EdgeInsets.all(0),
padding: widget.padding ?? EdgeInsets.all(0),
sliver: new SliverAnimatedList(
key: _sliverAnimatedListKey,
itemBuilder: widget.itemBuilder,

7
com.unity.uiwidgets/Runtime/widgets/basic.cs


Offset translation = null,
bool transformHitTests = true,
Widget child = null) : base(key: key, child: child) {
D.assert(translation != null);
this.translation = translation;
this.transformHitTests = transformHitTests;
}

public class SliverPadding : SingleChildRenderObjectWidget {
public SliverPadding(
Key key = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Widget sliver = null
) : base(key: key, child: sliver) {
D.assert(padding != null);

public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public override RenderObject createRenderObject(BuildContext context) {
return new RenderSliverPadding(

public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(new DiagnosticsProperty<EdgeInsets>("padding", padding));
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding));
}
}

19
com.unity.uiwidgets/Runtime/widgets/container.cs


public Container(
Key key = null,
AlignmentGeometry alignment = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Color color = null,
Decoration decoration = null,
Decoration foregroundDecoration = null,

EdgeInsets margin = null,
EdgeInsetsGeometry margin = null,
Matrix4 transform = null,
Widget child = null,
Clip clipBehavior = Clip.none

public readonly Widget child;
public readonly AlignmentGeometry alignment;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
EdgeInsets _paddingIncludingDecoration {
EdgeInsetsGeometry _paddingIncludingDecoration {
//Debug.LogError("EdgeInsets needs to be update to EdgeInsetsGeometry");
EdgeInsets decorationPadding = (EdgeInsets)decoration.padding;
EdgeInsetsGeometry decorationPadding = decoration.padding;
if (padding == null) {
return decorationPadding;
}

current = new Align(alignment: alignment, child: current);
}
EdgeInsets effetivePadding = _paddingIncludingDecoration;
EdgeInsetsGeometry effetivePadding = _paddingIncludingDecoration;
if (effetivePadding != null) {
current = new Padding(padding: effetivePadding, child: current);
}

base.debugFillProperties(properties);
properties.add(new DiagnosticsProperty<AlignmentGeometry>("alignment",
alignment, showName: false, defaultValue: foundation_.kNullDefaultValue));
properties.add(new DiagnosticsProperty<EdgeInsets>("padding",
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("padding",
padding, defaultValue: foundation_.kNullDefaultValue));
properties.add(new DiagnosticsProperty<Clip>("clipBehavior", clipBehavior, defaultValue: Clip.none));
if (color != null)

foregroundDecoration, defaultValue: foundation_.kNullDefaultValue));
properties.add(new DiagnosticsProperty<BoxConstraints>("constraints",
constraints, defaultValue: foundation_.kNullDefaultValue));
properties.add(new DiagnosticsProperty<EdgeInsets>("margin",
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("margin",
margin, defaultValue: foundation_.kNullDefaultValue));
properties.add(ObjectFlagProperty<Matrix4>.has("transform",
transform));

48
com.unity.uiwidgets/Runtime/widgets/editable_text.cs


bool cursorOpacityAnimates = false,
Offset cursorOffset = null,
bool paintCursorAboveText = false,
ui.BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
ui.BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
EdgeInsets scrollPadding = null,
Brightness? keyboardAppearance = Brightness.light,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,

public readonly VoidCallback onSelectionHandleTapped;
public readonly ScrollController scrollController;
public readonly bool showCursor;
public readonly ui.BoxHeightStyle selectionHeightStyle;
public readonly ui.BoxWidthStyle selectionWidthStyle;
public readonly BoxHeightStyle selectionHeightStyle;
public readonly BoxWidthStyle selectionWidthStyle;
public readonly bool forceLine;
public readonly bool showSelectionHandles ;
public readonly ToolbarOptions toolbarOptions;

properties.add( new DiagnosticsProperty<bool>("enableSuggestions", enableSuggestions, defaultValue: true));
style?.debugFillProperties(properties);
properties.add( new EnumProperty<TextAlign>("textAlign", textAlign, defaultValue: null));
properties.add( new EnumProperty<TextDirection>("textDirection", textDirection.Value, defaultValue: null));
properties.add( new EnumProperty<TextDirection?>("textDirection", textDirection, defaultValue: null));
properties.add( new DiagnosticsProperty<Locale>("locale", locale, defaultValue: null));
properties.add( new FloatProperty("textScaleFactor", textScaleFactor, defaultValue: null));
properties.add( new IntProperty("maxLines", maxLines, defaultValue: 1));

void _didChangeTextEditingValue() {
_updateRemoteEditingValueIfNeeded();
//_updateImePosIfNeed();
_updateImePosIfNeed();
_startOrStopCursorTimerIfNeeded();
_updateOrDisposeSelectionOverlayIfNeeded();
_textChangedSinceLastCaretUpdate = true;

return TouchScreenKeyboard.isSupported && widget.unityTouchKeyboard;
}
Offset _getImePos() {
if (_hasInputConnection && _textInputConnection.imeRequired()) {
var localPos = renderEditable.getLocalRectForCaret(_value.selection.basePos).bottomLeft;
return renderEditable.localToGlobal(localPos);
}
return null;
}
void _updateImePosIfNeed() {
if (!_hasInputConnection || !_textInputConnection.imeRequired()) {
return;
}
if (_imePosUpdateScheduled) {
return;
}
_imePosUpdateScheduled = true;
SchedulerBinding.instance.addPostFrameCallback(_ => {
_imePosUpdateScheduled = false;
if (!_hasInputConnection) {
return;
}
_textInputConnection.setIMEPos(_getImePos());
});
}
}

public readonly float? cursorWidth;
public readonly Radius cursorRadius;
public readonly Offset cursorOffset;
public readonly ui.BoxHeightStyle selectionHeightStyle;
public readonly ui.BoxWidthStyle selectionWidthStyle;
public readonly BoxHeightStyle selectionHeightStyle;
public readonly BoxWidthStyle selectionWidthStyle;
public readonly bool enableInteractiveSelection;
public readonly TextSelectionDelegate textSelectionDelegate;
public readonly bool? paintCursorAboveText;

Radius cursorRadius = null,
Offset cursorOffset = null,
bool? paintCursorAboveText = null,
ui.BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
ui.BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
bool enableInteractiveSelection = true,
TextSelectionDelegate textSelectionDelegate = null,
float? devicePixelRatio = null

2
com.unity.uiwidgets/Runtime/widgets/focus_manager.cs


properties.add(new DiagnosticsProperty<FocusNode>("nextFocus", _markedForFocus, defaultValue: null));
Element element = primaryFocus?.context as Element;
if (element != null) {
properties.add(new DiagnosticsProperty<String>("primaryFocusCreator", element.debugGetCreatorChain(20)));
properties.add(new DiagnosticsProperty<string>("primaryFocusCreator", element.debugGetCreatorChain(20)));
}
}
}

19
com.unity.uiwidgets/Runtime/widgets/focus_traversal.cs


return sortedList;
}
}
public interface Comparable<T> {
int compareTo(T other);
int compare(Comparable<T> a, T b);
}
public abstract class FocusOrder : Diagnosticable , Comparable<FocusOrder> {
public abstract class FocusOrder : Diagnosticable , IComparable {
public int compareTo(FocusOrder other) {
public int CompareTo(object other) {
return doCompare(other);
}
public int compare(Comparable<FocusOrder> a, FocusOrder b) {
//throw new NotImplementedException();
return a.compareTo(b);
return doCompare((FocusOrder) other);
}
protected abstract int doCompare(FocusOrder other);

"Incompatible order types can't be compared. Use a FocusTraversalGroup to group " +
"similar orders together."
);
return a.order.compareTo(b.order);
return a.order.CompareTo(b.order);
});
return ordered.Select((_OrderedFocusInfo info) => info.node).Concat(unordered);
}

12
com.unity.uiwidgets/Runtime/widgets/framework.cs


void visitChildElements(ElementVisitor visitor);
DiagnosticsNode describeElement(String name, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty);
DiagnosticsNode describeElement(string name, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty);
DiagnosticsNode describeWidget(String name, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty);
DiagnosticsNode describeWidget(string name, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty);
DiagnosticsNode describeOwnershipChain(String name);
DiagnosticsNode describeOwnershipChain(string name);
}
public class BuildOwner {

return information;
}
public static DiagnosticsNode describeElements(String name, IEnumerable<Element> elements) {
public static DiagnosticsNode describeElements(string name, IEnumerable<Element> elements) {
return new DiagnosticsBlock(
name: name,
children: elements.Select((Element element) => new DiagnosticsProperty<Element>("", element))

return new DiagnosticsProperty<Element>(name, this, style: style);
}
public DiagnosticsNode describeWidget(String name,
public DiagnosticsNode describeWidget(string name,
public DiagnosticsNode describeOwnershipChain(String name) {
public DiagnosticsNode describeOwnershipChain(string name) {
return new StringProperty(name, debugGetCreatorChain(10));
}

32
com.unity.uiwidgets/Runtime/widgets/implicit_animations.cs


public AnimatedContainer(
Key key = null,
AlignmentGeometry alignment = null,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
Color color = null,
Decoration decoration = null,
Decoration foregroundDecoration = null,

EdgeInsets margin = null,
EdgeInsetsGeometry margin = null,
Matrix4 transform = null,
Widget child = null,
Curve curve = null,

public readonly AlignmentGeometry alignment;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly Decoration decoration;

public readonly EdgeInsets margin;
public readonly EdgeInsetsGeometry margin;
public readonly Matrix4 transform;

base.debugFillProperties(properties);
properties.add(new DiagnosticsProperty<AlignmentGeometry>("alignment", alignment, showName: false,
defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsets>("padding", padding, defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding, defaultValue: null));
properties.add(new DiagnosticsProperty<Decoration>("bg", decoration, defaultValue: null));
properties.add(
new DiagnosticsProperty<Decoration>("fg", foregroundDecoration, defaultValue: null));

properties.add(new DiagnosticsProperty<EdgeInsets>("margin", margin, defaultValue: null));
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("margin", margin, defaultValue: null));
properties.add(ObjectFlagProperty<Matrix4>.has("transform", transform));
}
}

EdgeInsetsTween _padding;
EdgeInsetsGeometryTween _padding;
EdgeInsetsTween _margin;
EdgeInsetsGeometryTween _margin;
Matrix4Tween _transform;

_padding = (EdgeInsetsTween) visitor.visit(this, _padding, widget.padding,
(EdgeInsets value) => new EdgeInsetsTween(begin: value));
_padding = (EdgeInsetsGeometryTween) visitor.visit(this, _padding, widget.padding,
( value) => new EdgeInsetsGeometryTween(begin: value));
_decoration = (DecorationTween) visitor.visit(this, _decoration, widget.decoration,
(Decoration value) => new DecorationTween(begin: value));
_foregroundDecoration = (DecorationTween) visitor.visit(this, _foregroundDecoration,

_margin = (EdgeInsetsTween) visitor.visit(this, _margin, widget.margin,
(EdgeInsets value) => new EdgeInsetsTween(begin: value));
_margin = (EdgeInsetsGeometryTween) visitor.visit(this, _margin, widget.margin,
(value) => new EdgeInsetsGeometryTween(begin: value));
_transform = (Matrix4Tween) visitor.visit(this, _transform, widget.transform,
(Matrix4 value) => new Matrix4Tween(begin: value));
}

base.debugFillProperties(description);
description.add(new DiagnosticsProperty<AlignmentGeometryTween>("alignment", _alignment, showName: false,
defaultValue: null));
description.add(new DiagnosticsProperty<EdgeInsetsTween>("padding", _padding, defaultValue: null));
description.add(new DiagnosticsProperty<EdgeInsetsGeometryTween>("padding", _padding, defaultValue: null));
description.add(new DiagnosticsProperty<EdgeInsetsTween>("margin", _margin, defaultValue: null));
description.add(new DiagnosticsProperty<EdgeInsetsGeometryTween>("margin", _margin, defaultValue: null));
description.add(ObjectFlagProperty<Matrix4Tween>.has("transform", _transform));
}
}

public override Widget build(BuildContext context) {
return new Padding(
padding: (EdgeInsets) _padding
padding: _padding
.clamp(EdgeInsets.zero, EdgeInsets.infinity),
.clamp(EdgeInsets.zero, EdgeInsetsGeometry.infinity),
child: widget.child
);
}

61
com.unity.uiwidgets/Runtime/widgets/scroll_view.cs


bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
float? cacheExtent = null,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual

this.padding = padding;
}
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
EdgeInsets effectivePadding = padding; // no need to check MediaQuery for now.
EdgeInsetsGeometry effectivePadding = padding;
if (padding == null) {
MediaQueryData mediaQuery = MediaQuery.of(context, nullOk: true);
if (mediaQuery != null) {
EdgeInsets mediaQueryHorizontalPadding =
mediaQuery.padding.copyWith(top: 0.0f, bottom: 0.0f);
EdgeInsets mediaQueryVerticalPadding =
mediaQuery.padding.copyWith(left: 0.0f, right: 0.0f);
effectivePadding = scrollDirection == Axis.vertical
? mediaQueryVerticalPadding
: mediaQueryHorizontalPadding;
sliver = new MediaQuery(
data: mediaQuery.copyWith(
padding: scrollDirection == Axis.vertical
? mediaQueryHorizontalPadding
: mediaQueryVerticalPadding
),
child: sliver
);
}
}
if (effectivePadding != null) {
sliver = new SliverPadding(padding: effectivePadding, sliver: sliver);
}

public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(new DiagnosticsProperty<EdgeInsets>("padding", padding,
properties.add(new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding,
defaultValue: foundation_.kNullDefaultValue));
}
}

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
float? itemExtent = null,
bool addAutomaticKeepAlives = true,
bool addRepaintBoundaries = true,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
float? itemExtent = null,
IndexedWidgetBuilder itemBuilder = null,
int? itemCount = null,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
float? itemExtent = null,
IndexedWidgetBuilder itemBuilder = null,
int? itemCount = null,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
IndexedWidgetBuilder itemBuilder = null,
IndexedWidgetBuilder separatorBuilder = null,
int itemCount = 0,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
IndexedWidgetBuilder itemBuilder = null,
IndexedWidgetBuilder separatorBuilder = null,
int itemCount = 0,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
float? itemExtent = null,
SliverChildDelegate childrenDelegate = null,
float? cacheExtent = null

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
float? itemExtent = null,
SliverChildDelegate childrenDelegate = null,
float? cacheExtent = null

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
SliverGridDelegate gridDelegate = null,
bool addAutomaticKeepAlives = true,
bool addRepaintBoundaries = true,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
SliverGridDelegate gridDelegate = null,
IndexedWidgetBuilder itemBuilder = null,
int? itemCount = null,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
SliverGridDelegate gridDelegate = null,
IndexedWidgetBuilder itemBuilder = null,
int? itemCount = null,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
SliverGridDelegate gridDelegate = null,
SliverChildDelegate childrenDelegate = null,
float? cacheExtent = null,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
SliverGridDelegate gridDelegate = null,
SliverChildDelegate childrenDelegate = null,
float? cacheExtent = null,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
int? crossAxisCount = null,
float mainAxisSpacing = 0.0f,
float crossAxisSpacing = 0.0f,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
int? crossAxisCount = null,
float mainAxisSpacing = 0.0f,
float crossAxisSpacing = 0.0f,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
float? maxCrossAxisExtent = null,
float mainAxisSpacing = 0.0f,
float crossAxisSpacing = 0.0f,

bool? primary = null,
ScrollPhysics physics = null,
bool shrinkWrap = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
float? maxCrossAxisExtent = null,
float mainAxisSpacing = 0.0f,
float crossAxisSpacing = 0.0f,

4
com.unity.uiwidgets/Runtime/widgets/single_child_scroll_view.cs


Key key = null,
Axis scrollDirection = Axis.vertical,
bool reverse = false,
EdgeInsets padding = null,
EdgeInsetsGeometry padding = null,
bool? primary = null,
ScrollPhysics physics = null,
ScrollController controller = null,

public readonly bool reverse;
public readonly EdgeInsets padding;
public readonly EdgeInsetsGeometry padding;
public readonly ScrollController controller;

2
com.unity.uiwidgets/Runtime/widgets/title.cs


this.title = title;
}
public readonly String title;
public readonly string title;
public readonly Color color;
public readonly Widget child;
public override Widget build(BuildContext context) {

5
engine/src/lib/ui/window/pointer_data.h


kDown,
kMove,
kUp,
kMouseDown,
kMouseUp,
};
enum class DeviceKind : int64_t {

kInvertedStylus,
kInvertedStylus,
kKeyboard,
};
enum class SignalKind : int64_t {

6
engine/src/shell/platform/embedder/embedder.cc


return PointerData::Change::kRemove;
case kHover:
return PointerData::Change::kHover;
case kMouseDown:
return PointerData::Change::kMouseDown;
case kMouseUp:
return PointerData::Change::kMouseUp;
}
return PointerData::Change::kCancel;
}

return PointerData::DeviceKind::kMouse;
case kUIWidgetsPointerDeviceKindTouch:
return PointerData::DeviceKind::kTouch;
case kUIWidgetsPointerDeviceKindKeyboard:
return PointerData::DeviceKind::kKeyboard;
}
return PointerData::DeviceKind::kMouse;
}

5
engine/src/shell/platform/embedder/embedder.h


kAdd,
kRemove,
kHover,
kMouseDown,
kMouseUp,
kUIWidgetsPointerDeviceKindTouch = 0,
kUIWidgetsPointerDeviceKindTouch,
kUIWidgetsPointerDeviceKindKeyboard = 7,
} UIWidgetsPointerDeviceKind;
typedef enum {

23
engine/src/shell/platform/unity/windows/uiwidgets_panel.cc


}
}
void UIWidgetsPanel::OnKeyDown(int keyCode, bool isKeyDown) {
if (process_events_) {
UIWidgetsPointerEvent event = {};
event.phase = isKeyDown ? UIWidgetsPointerPhase::kMouseDown : UIWidgetsPointerPhase::kMouseUp;
event.device_kind =
UIWidgetsPointerDeviceKind::kUIWidgetsPointerDeviceKindKeyboard;
event.buttons = keyCode;
event.struct_size = sizeof(event);
event.timestamp =
std::chrono::duration_cast<std::chrono::microseconds>(
std::chrono::high_resolution_clock::now().time_since_epoch())
.count();
UIWidgetsEngineSendPointerEvent(engine_, &event, 1);
}
}
void UIWidgetsPanel::OnMouseMove(float x, float y) {
if (process_events_) {
SendMouseMove(x, y);

UIWIDGETS_API(void)
UIWidgetsPanel_unregisterTexture(UIWidgetsPanel* panel, int texture_id) {
panel->UnregisterTexture(texture_id);
}
UIWIDGETS_API(void)
UIWidgetsPanel_onKey(UIWidgetsPanel* panel, int keyCode, bool isKeyDown) {
panel->OnKeyDown(keyCode, isKeyDown);
}
UIWIDGETS_API(void)

2
engine/src/shell/platform/unity/windows/uiwidgets_panel.h


void ProcessVSync();
void VSyncCallback(intptr_t baton);
void OnKeyDown(int keyCode, bool isKeyDown);
void OnMouseMove(float x, float y);

537
Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFeildTest.unity


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &764046566
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 764046568}
- component: {fileID: 764046567}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &764046567
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &764046568
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &847097468
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 847097469}
- component: {fileID: 847097471}
- component: {fileID: 847097470}
m_Layer: 5
m_Name: RawImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &847097469
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2122288190}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &847097470
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c5962c6d91d67c747b9768c1aec548a1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Texture: {fileID: 0}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
fonts: []
devicePixelRatioOverride: 1
hardwareAntiAliasing: 0
--- !u!222 &847097471
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_CullTransparentMesh: 0
--- !u!1 &1548023132
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1548023135}
- component: {fileID: 1548023134}
- component: {fileID: 1548023133}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1548023133
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
--- !u!20 &1548023134
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5.6
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1548023135
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0}
m_LocalPosition: {x: 0, y: 1, z: 0.32}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0}
--- !u!1 &1900497009
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1900497012}
- component: {fileID: 1900497011}
- component: {fileID: 1900497010}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1900497010
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &1900497011
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &1900497012
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2122288186
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2122288190}
- component: {fileID: 2122288189}
- component: {fileID: 2122288188}
- component: {fileID: 2122288187}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2122288187
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &2122288188
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &2122288189
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &2122288190
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 847097469}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}

7
Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFeildTest.unity.meta


fileFormatVersion: 2
guid: a660424ab530adf4294a23777386c113
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

537
Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFieldSample.unity


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &764046566
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 764046568}
- component: {fileID: 764046567}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &764046567
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &764046568
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &847097468
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 847097469}
- component: {fileID: 847097471}
- component: {fileID: 847097470}
m_Layer: 5
m_Name: RawImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &847097469
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2122288190}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &847097470
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aadc2d983f1b0564688e35a7d4933599, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Texture: {fileID: 0}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
fonts: []
devicePixelRatioOverride: 1
hardwareAntiAliasing: 0
--- !u!222 &847097471
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_CullTransparentMesh: 0
--- !u!1 &1548023132
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1548023135}
- component: {fileID: 1548023134}
- component: {fileID: 1548023133}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1548023133
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
--- !u!20 &1548023134
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5.6
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1548023135
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0}
m_LocalPosition: {x: 0, y: 1, z: 0.32}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0}
--- !u!1 &1900497009
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1900497012}
- component: {fileID: 1900497011}
- component: {fileID: 1900497010}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1900497010
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &1900497011
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &1900497012
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2122288186
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2122288190}
- component: {fileID: 2122288189}
- component: {fileID: 2122288188}
- component: {fileID: 2122288187}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2122288187
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &2122288188
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &2122288189
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &2122288190
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 847097469}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}

7
Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFieldSample.unity.meta


fileFormatVersion: 2
guid: a2aeac099bd29bd439c593cf47247b78
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

537
Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFieldTest.unity


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &764046566
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 764046568}
- component: {fileID: 764046567}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &764046567
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &764046568
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &847097468
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 847097469}
- component: {fileID: 847097471}
- component: {fileID: 847097470}
m_Layer: 5
m_Name: RawImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &847097469
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2122288190}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &847097470
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c5962c6d91d67c747b9768c1aec548a1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Texture: {fileID: 0}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
fonts: []
devicePixelRatioOverride: 1
hardwareAntiAliasing: 0
--- !u!222 &847097471
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_CullTransparentMesh: 0
--- !u!1 &1548023132
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1548023135}
- component: {fileID: 1548023134}
- component: {fileID: 1548023133}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1548023133
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
--- !u!20 &1548023134
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5.6
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1548023135
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0}
m_LocalPosition: {x: 0, y: 1, z: 0.32}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0}
--- !u!1 &1900497009
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1900497012}
- component: {fileID: 1900497011}
- component: {fileID: 1900497010}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1900497010
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &1900497011
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &1900497012
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2122288186
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2122288190}
- component: {fileID: 2122288189}
- component: {fileID: 2122288188}
- component: {fileID: 2122288187}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2122288187
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &2122288188
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &2122288189
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &2122288190
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 847097469}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}

7
Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextFieldTest.unity.meta


fileFormatVersion: 2
guid: 2b74967f2e8d4b640a6a4e521906ee1a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

537
Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextInputSample.unity


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &764046566
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 764046568}
- component: {fileID: 764046567}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &764046567
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &764046568
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &847097468
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 847097469}
- component: {fileID: 847097471}
- component: {fileID: 847097470}
m_Layer: 5
m_Name: RawImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &847097469
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2122288190}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &847097470
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d8495746441674d418f8093fdd93c7ac, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Texture: {fileID: 0}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
fonts: []
devicePixelRatioOverride: 1
hardwareAntiAliasing: 0
--- !u!222 &847097471
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_CullTransparentMesh: 0
--- !u!1 &1548023132
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1548023135}
- component: {fileID: 1548023134}
- component: {fileID: 1548023133}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1548023133
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
--- !u!20 &1548023134
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5.6
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1548023135
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0}
m_LocalPosition: {x: 0, y: 1, z: 0.32}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0}
--- !u!1 &1900497009
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1900497012}
- component: {fileID: 1900497011}
- component: {fileID: 1900497010}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1900497010
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &1900497011
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &1900497012
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2122288186
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2122288190}
- component: {fileID: 2122288189}
- component: {fileID: 2122288188}
- component: {fileID: 2122288187}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2122288187
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &2122288188
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &2122288189
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &2122288190
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 847097469}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}

7
Samples/UIWidgetsSamples_2019_4/Assets/Scene/TextInputSample.unity.meta


fileFormatVersion: 2
guid: 4f4805a0c7c99d341a875a89aabdc44a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

537
Samples/UIWidgetsSamples_2019_4/Assets/Scene/ToDoApp.unity


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &764046566
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 764046568}
- component: {fileID: 764046567}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &764046567
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &764046568
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 764046566}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &847097468
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 847097469}
- component: {fileID: 847097471}
- component: {fileID: 847097470}
m_Layer: 5
m_Name: RawImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &847097469
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2122288190}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &847097470
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bb50d118c9f001e4c85c81a6ce1393c2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Texture: {fileID: 0}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
fonts: []
devicePixelRatioOverride: 1
hardwareAntiAliasing: 0
--- !u!222 &847097471
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 847097468}
m_CullTransparentMesh: 0
--- !u!1 &1548023132
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1548023135}
- component: {fileID: 1548023134}
- component: {fileID: 1548023133}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1548023133
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
--- !u!20 &1548023134
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5.6
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1548023135
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1548023132}
m_LocalRotation: {x: 0, y: 0.7071068, z: -0.7071068, w: 0}
m_LocalPosition: {x: 0, y: 1, z: 0.32}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0}
--- !u!1 &1900497009
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1900497012}
- component: {fileID: 1900497011}
- component: {fileID: 1900497010}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1900497010
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &1900497011
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &1900497012
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1900497009}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2122288186
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2122288190}
- component: {fileID: 2122288189}
- component: {fileID: 2122288188}
- component: {fileID: 2122288187}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2122288187
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &2122288188
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &2122288189
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &2122288190
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122288186}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 847097469}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}

7
Samples/UIWidgetsSamples_2019_4/Assets/Scene/ToDoApp.unity.meta


fileFormatVersion: 2
guid: c7fbf1d09364dd54c91467e43d895d22
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

76
Samples/UIWidgetsSamples_2019_4/Assets/Script/TextFieldTest.cs


using Unity.UIWidgets.engine2;
using Unity.UIWidgets.widgets;
using ui_ = Unity.UIWidgets.widgets.ui_;
using Unity.UIWidgets.cupertino;
namespace UIWidgetsSample
{
public class TextFieldTest : UIWidgetsPanel
{
protected void OnEnable()
{
base.OnEnable();
}
protected override void main()
{
ui_.runApp(new MyApp());
}
class MyApp : StatelessWidget
{
public override Widget build(BuildContext context)
{
return new CupertinoApp(
home: new HomeScreen()
);
}
}
class HomeScreen : StatelessWidget
{
public override Widget build(BuildContext context)
{
return new HomeScreen3();
}
}
public class HomeScreen3 : StatelessWidget
{
public override Widget build(BuildContext context)
{
return new CupertinoPageScaffold(
child: new Center(
child:
new Container(
width: 200,
child: new MyPrefilledText()
)
)
);
}
}
public class MyPrefilledText : StatefulWidget
{
public override State createState() => new _MyPrefilledTextState();
}
class _MyPrefilledTextState : State<MyPrefilledText>
{
TextEditingController _textController;
public override void initState()
{
base.initState();
_textController = new TextEditingController(text: "initial text");
}
public override Widget build(BuildContext context)
{
return new CupertinoTextField(controller: _textController);
}
}
}
}

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存