浏览代码

allow widget background color to be transparent in uiwidgets

/main
Xingwei Zhu 3 年前
当前提交
abd62367
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      com.unity.uiwidgets/Runtime/widgets/title.cs

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


Widget child = null
) : base(key: key) {
D.assert(title != null);
D.assert(color != null && color.alpha == 0xFF);
//in flutter, the background color is not allowed to be transparent because there is nothing behind the UI. But in UIWidgets it is
//possible to put a unity scene under the ui panel. Therefore we can discard the assertion on "color.alpha == 0xFF" here
D.assert(color != null);
this.color = color;
this.child = child;
this.title = title;

正在加载...
取消
保存